ts-7000
[Top] [All Lists]

Re: [ts-7000] Re: lost original sd card boot image, get trouble with cre

To:
Subject: Re: [ts-7000] Re: lost original sd card boot image, get trouble with creating a new sd boot image
From: Don Tucker <>
Date: Thu, 28 Feb 2013 10:18:07 -0600
Something I should mention is that the SD card should NOT be mounted
when you dd the image over. I don't normally have a problem with that,
as the SD cards I use come without and file system on them. It looks
like your SD card (/dev/mmcblkop) is being mounted (/dev/mmcblkop1).
Unmount it and then try your dd again. After the dd is done, remove the
SD card and reinsert it. You should then see multiple partitions mount
(initrc, root, and other. The kernel partition doesn't mount.).

Don
On 2/28/2013 9:20 AM, tanganyang1985 wrote:

Thank you for your reply.

I use df -T, it gives me
Filesystem Type 1K-blocks Used Available Use% Mounted on
/dev/sda5 ext4 12074928 5730836 5730716 51% /
none devtmpfs 1471508 244904 1226604 17% /dev
none tmpfs 1478116 212 1477904 1% /dev/shm
none tmpfs 1478116 144 1477972 1% /var/run
none tmpfs 1478116 0 1478116 0% /var/lock
/dev/mmcblk0p1
ext2 959496 1204 909552 1% /media/cea1592a-0f14-4ac5-b64e-8d4a2f28d368

So my last try is like that:
bzcat sdimage-new.dd.bz2 | dd of=/dev/mmcblk0p1 bs=4096k

After the dd, my sd card is full and unrecognizable.

Base on your reply, I changed the dd command to:

bzcat sdimage-new.dd.bz2 | dd of=/dev/mmcblk0p bs=4096k

however, after df -T
my srceen is like
/dev/sda5 ext4 12074928 5730836 5730716 51% /
none devtmpfs 1471508 244904 1226604 17% /dev
none tmpfs 1478116 212 1477904 1% /dev/shm
none tmpfs 1478116 144 1477972 1% /var/run
none tmpfs 1478116 0 1478116 0% /var/lock
/dev/mmcblk0p1
ext2 959496 1204 909552 1% /media/cea1592a-0f14-4ac5-b64e-8d4a2f28d368

nothing has been copy to the sd card.

--- In  <ts-7000%40yahoogroups.com>, Don
Tucker wrote:
>
> You shouldn't have to manually partition the SD card, or allocate size
> for it. The partitions are built into sdimage-new.dd, and the size
to be
> allocated will be allocated when you dd the image over (I believe it's
> 256MB). Once the image has been dd'd over to the SD card, you can use a
> tool like Gparted to resize the partitions or create new ones, if you
> need to.
>
> Don
>
> On 2/28/2013 8:41 AM, tanganyang1985 wrote:
> >
> > Thanks for quick response.
> >
> > I think you are right, the sd card I am using now has only one
partition.
> >
> > One more question, what is the size should I allocate the sd card? is
> > it something like : partition 1: 10 MB, partition 2: 10 MB and
> > partition 3 980 MB?
> >
> > Alex
> >
> > --- In  <ts-7000%40yahoogroups.com>
, Don
> > Tucker wrote:
> > >
> > > I believe that sdimage-new.dd actually has 3 (or 4?) partitions. The
> > > kernel should be put onto partition 2. I'm not sure how partition 2
> > > shows up on your machine when the SD card is mounted. I do
something
> > like:
> > >
> > > dd if=sdimage-new.dd of=/dev/sdb
> > >
> > > to put the image onto the sdcard, and then
> > >
> > > dd if=arch/arm/boot/Image of=/dev/sdb2
> > >
> > > to put the kernel onto partition 2.
> > >
> > > As a final step, once the SD card has booted, on the SD card I do
> > >
> > > |chown -R root:root /lib/modules/2.4.26-ts11/|
> > >
> > > copy the System.map from the kernel source directory over to the SD
> > card
> > > and do
> > >
> > > depmod -a -F System.map
> > >
> > > Don
> > >
> > > On 2/28/2013 8:08 AM, tanganyang1985 wrote:
> > > >
> > > > The precise procedure is like that:
> > > >
> > > > step 1: sudo apt-get install libncurses5-dev libncursesw5-dev
Result:
> > > > no error
> > > > step 2: wget
> > > >
> >
ftp://ftp.embeddedarm.com/ts-arm-sbc/ts-7260-linux/binaries/ts-images/sdimage-new.dd.bz2

> >
> > > > Result : no error
> > > > step 3: bzcat sdimage-new.dd.bz2 | dd of=/dev/mmcblk0p1 bs=4096k
> > > > Result: no error
> > > > step 4: cd ~
> > > > mkdir ts7200_kernel_howto /
> > > > wget ftp://ftp.embeddedarm.com/ts-arm-sbc/ts-7260-linux/\
<ftp://ftp.embeddedarm.com/ts-arm-sbc/ts-7260-linux/>> >
ftp://ftp.embeddedarm.com/ts-arm-sbc/ts-7260-linux/>> > wget
> > ftp://ftp.embeddedarm.com/ts-arm-sbc/ts-7260-linux/\
<ftp://ftp.embeddedarm.com/ts-arm-sbc/ts-7260-linux/>> >
ftp://ftp.embeddedarm.com/ts-arm-sbc/ts-7260-linux/>> > tar xjvf
> > crosstool-linux-gcc-3.3.4-glibc-2.3.2-0.28rc39.tar.bz2
> > > > tar xzvf tskernel-2.4.26-ts11-src.tar.gz
> > > > rm -f *.tar.bz2 Result no error
> > > > step 5: cd linux24/
> > > > vi Makefile
> > > >
> > > > CROSS_COMPILE = $(shell cd
> > > >
> >
$(TOPDIR)/../usr/local/opt/crosstool/arm-linux/gcc-3.3.4-glibc-2.3.2/bin/
> > > > && pwd)/arm-linux- Result: no error
> > > > make menuconfig
> > > > - Load the TS-7260 config file by typing "L" three times,
"ENTER", and
> > > > specify: arch/arm/def-configs/ts7260
> > > > When finished, save and exit back to the menuconfig root (home
page)
> > > >
> > > > - Change the default kernel command line by typing "G",
"Enter", "D",
> > > > "ENTER", and specify: root=/dev/ram0 init=/linuxrc
> > > > console=ttyAM0,115200 printk=4 loops=499712
> > > > When finished, save and exit back to the menuconfig root (home
page)
> > > >
> > > > - Exit menuconfig and be sure to say "Yes" to save your changes
> > > >
> > > > Compile the kernel
> > > > * make dep
> > > > * make Image
> > > > Result: no error
> > > >
> > > > Step 6: updating sd card
> > > >
> > > > dd if=arch/arm/boot/Image of=/dev/mmcblk0p1 no error
> > > >
> > > > Step 7: umount sd card
> > > > umount /dev/mmcblk0p1
> > > >
> > > > Step 8 : insert sd card, then minicom, then power on ts 7260
> > > > the minicom keeps repeating these three lines:
> > > > >> TS-SDBOOT - built Aug 10 2009
> > > > >> Copyright (c) 2007, Technologic Systems
> > > > .
> > > >
> > > > I am using a empty 1 GB sd card with one partition.
> > > >
> > > > Could anyone gives some suggestions? Thanks very much.
> > > >
> > > > Alex
> > > >
> > > > --- In 
<ts-7000%40yahoogroups.com> ,
> > > > "tanganyang1985" wrote:
> > > > >
> > > > > hello every:
> > > > >
> > > > > I lost the original sd card boot image, so I have to create
a new
> > > > one.for the TS-7260 SBC.
> > > > >
> > > > > The TS7260 has already permanently modified the TS-7260 to
boot to
> > > > the SD card.
> > > > >
> > > > > I have tried two sd card, one is sd impact 1 GB with 2 partition
> > > > (ext2 1.6 mb and 994 mb), the other one I used is 16 GB SDHC
with one
> > > > partition (ext2)
> > > > >
> > > > > I followed these two links step by step, no error occurs:
> > > > >
http://www.embeddedarm.com/software/arm-linux-fastboot-ts7300.php
> > > > > http://www.embeddedarm.com/about/resource.php?item=485
> > > > >
> > > > > however, it is failed when I insert the new sd card into the
TS7260
> > > > socket, the minicom keeps showing:
> > > > >
> > > > > >> TS-SDBOOT - built Aug 10
> > > > > 2009
> > > > > >> Copyright (c) 2007, Technologic Systems
> > > > >
> > > > > Could anyone gives some suggestions? Thanks very much,
> > > > >
> > > > > Alex
> > > > >
> > > >
> > > >
> > >
> >
> >
>



Attachment: smime.p7s
Description: S/MIME Cryptographic Signature

<Prev in Thread] Current Thread [Next in Thread>
Admin

Disclaimer: Neither Andrew Taylor nor the University of NSW School of Computer and Engineering take any responsibility for the contents of this archive. It is purely a compilation of material sent by many people to the birding-aus mailing list. It has not been checked for accuracy nor its content verified in any way. If you wish to get material removed from the archive or have other queries about the archive e-mail Andrew Taylor at this address: andrewt@cse.unsw.EDU.AU