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:
Date: Mon, 4 Mar 2013 10:40:42 -0600
You should probably try contacting TS tech support, since I'm just
guessing here, but you can try renaming the tsfastboot file and then
reboot ("shutdown -r now").  I seem to recall that if a certain file is
present, the full boot goes on in the background, rather than prior to
receiving the command prompt.  Why do you exit after boot, though?  It
looks like the SD card is successfully booting, right?

Don

> thanks Don, when I type "ls -l" minicom gives me:
>
> drwxr-xr-x   15 0        0            1024 Jan  1  1970 var
> drwxr-xr-x   12 0        0            1024 Mar 30  2006 usr
> -rwxr-xr-x    1 0        0             129 Jul 10  2007 tsinit
> -rw-r--r--    1 0        0               0 Jul 18  2007 tsfastboot
> drwxrwxrwx    2 0        0            1024 Jan  1 00:04 tmp
> drwxr-xr-x    2 0        0            1024 Mar 16  2006 sys
> drwxr-xr-x    2 0        0            2048 Dec  1  2008 sbin
> drwxr-xr-x    2 0        0            1024 Dec  1  2008 root
> dr-xr-xr-x    2 0        0            1024 Mar 16  2006 proc
> drwxr-xr-x    2 0        0            1024 Mar 16  2006 opt
> drwxr-xr-x    2 0        0            1024 Mar 16  2006 nfsroot
> drwxr-xr-x    5 0        0            1024 Mar 16  2006 mnt
> drwxr-xr-x    7 0        0            3072 Dec  1  2008 lib
> drwxr-xr-x    2 0        0            1024 Mar 16  2006 initrd
> drwxr-xr-x    2 0        0            1024 Oct 20  2006 include
> drwxr-xr-x    2 0        0            1024 Mar 16  2006 home
> drwxr-xr-x   64 0        0            3072 Aug 22  2007 etc
> drwxr-xr-x    3 0        0           17408 Dec  1  2008 dev
> drwxr-xr-x    2 0        0            1024 Feb 28  2007 boot
> drwxr-xr-x    2 0        0            2048 Dec  1  2008 bin
> drwx------    2 0        0           12288 Jan 24  2007 lost+found
>
>
> --- In  Don Tucker <> wrote:
>>
>> I'm guessing that the linuxrc hasn't been linked to linuxrc-sdroot, but
>> it's been a while. When you get the $ prompt and type "ls -l" what is
>> linked to linuxrc? I use the fastboot procedure here
>>
>> http://www.embeddedarm.com/software/arm-linux-fastboot-ts7300.php
>>
>> although, you can't ever go back once you configure your board to boot
>> that way.
>>
>> Don
>>
>> On 2/28/2013 11:45 AM, tanganyang1985 wrote:
>> >
>> > thanks so much, the image has been dd to the sd card now, however,
>> > when i boot the sbc and type exit, the linux can't be loaded
>> > the screen looks like:
>> >
>> > >> TS-SDBOOT - built Aug 10 2009
>> > >> Copyright (c) 2007, Technologic Systems
>> > .
>> > .
>> > .
>> > Finished booting in 1.81 seconds
>> > Type 'tshelp' for help
>> > $ exit
>> > >> Booting Linux...
>> >
>> > any idea?
>> >
>> > --- In  <ts-7000%40yahoogroups.com>, Don
>> > Tucker wrote:
>> > >
>> > > 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/>> >
>> > > > 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/>> >
>> > > > 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
>> > > > > > > > >
>> > > > > > > >
>> > > > > > > >
>> > > > > > >
>> > > > > >
>> > > > > >
>> > > > >
>> > > >
>> > > >
>> > >
>> >
>> >
>>
>
>
>




------------------------------------

Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/ts-7000/

<*> Your email settings:
    Individual Email | Traditional

<*> To change settings online go to:
    http://groups.yahoo.com/group/ts-7000/join
    (Yahoo! ID required)

<*> To change settings via email:
     
    

<*> To unsubscribe from this group, send an email to:
    

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/

<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