ts-7000
[Top] [All Lists]

Re: [ts-7000] Re: default SD Debian Linux

To:
Subject: Re: [ts-7000] Re: default SD Debian Linux
From: Petr Ledvina <>
Date: Thu, 28 May 2009 20:40:51 +0200
I have tsbootrom-update on USB flash. I use it to change new boards to sdboot.
I use following files (on usb flash with fat32, the flash can contain
another data):
/tsinit:
mount | grep /mnt/usb
if [ $? = 0 ]; then
# sdboot is already present, go to shell
exec sh -i
else
echo Exit shell to update board to sdboot, reboot otherwise
exec sh -i
update
reboot
fi

/bin/update:
mac=`ifconfig eth0 | grep HWaddr | cut -d' ' -f11`
echo $mac
tsbootrom-update -s -m $mac

/bin/tsbootrom-update: downloaded from embeddedarm ftp

Then i copied bin,lib and usr from nand onboard flash to usb (some
libraries and commands are missing with defalut boot. Clean solution
would be to mount onboard flash, but I was too lazy. Copied
directories have about 60M, symlinks were lost in copy. )
I simply put 'exec sh -i' into tsinit on flash (so linuxrc mounted it
for me), then mounted onboard flash and copied necesary data ..

Then when usb flash is in lower USB port, first sdboot is installed
and board rebooted, shell is entered on second boot (correct sdcard
must be present)

And .. be carefull with tsbootrom-update without -m <MAC> parameter;
it sets ethernet MAC to all zeroes by default and ethernet stops
working ..

Maybe this can help you ...


Petr

On Thu, May 28, 2009 at 11:50, ts7300 <> wrote:
>
>
> I am also stuck at same point when I am trying to install SDBOOT using
> tsbootrom-update-s then it will show /bin/sh: tsbootrom-update not found.In
> my case I am using telent on ts7400 board.
> ----------------------------------------------------------
> --- In  "Eddie Dawydiuk" <> wrote:
>>
>> Hello,
>>
>> > I have a problem booting the default SD Linux in the TS-7400 board. I
>> > bought a 512 MB SD card that contains three partitions, the first is
>> > supposed to be the MBR, the second the initrd and the kernel image,
>> > and the third the debian system.
>>
>> I believe the MBR is the first 512 bytes of the SD card, the first
>> partition contains the kernel, the second partition contains the initial
>> ramdisk, and the third partition is where the linux file system lives.
>>
>> > Using the FlashBOOT, it loads the SD
>> > card debian without problems, I think because it just mounts the third
>> > partiton of the SD. But when installing the SDBOOT using the
>> > tsbootrom-update program in order to boot the SD directly, it fails
>> > and hangs up, something like these messages:
>> >
>> >>> TS-SDBOOT - built Oct 17 2006
>> >>> Copyright (c) 2006, Technologic Systems
>> > .
>> > .
>> > .
>> >>> Booting Linux ...
>> >
>> > It could be the way I installed the SDBOOT, because I did it like that:
>> >
>> > ./tsboottom-update -s
>> >
>> > it's the only option I found it would be suitable.
>>
>> By default the kernel and initial ramdisk is loaded from the onboard
>> flash, the tsbootrom-update command you ran modifies the preboot in the
>> e2 so the kernel and initial ramdisk is loaded from the SD card. We
>> didn't intend people to do this on a TS-7400. The reason being the
>> initial ramdisk on the SD card contains functionality for the TS-7300
>> FPGA. If you would like to load the initial ramdisk and kernel from the
>> SD card, then you would need to copy the initial ramdisk and kernel from
>> the onboard flash to the SD card using the mtdcopy utility.
>>
>> > Now, I am looking for a way to build my own SD-card system. I found
>> > something similar, but for CF. In that case I have to get the images
>> > of the MBR, the kernel and the initrd, and the Debian System. The
>> > problem is that I don't know what are the images for the TS-7400.
>> > Could somebody help me?
>>
>> You can download the fastboot SD image here
>>
>> ftp://ftp.embeddedarm.com/ts-arm-linux-cd/binaries/ts-images/fastboot-7300-sdcard-7-6-2006.dd.bz2
>>
>> You can read the SD card filesystem from this image, you can read the
>> MBR, initial ramdisk, and kernel from the onboard flash.
>>
>> //Eddie
>>
>
>



--
       Ing. Petr Ledvina
        ekoTIP ID s.r.o.
 identifikační technologie
 Morseova 1126/5 30100 Plzeň
         tel:608101056
www: ekotip.cz  


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

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