ts-7000
[Top] [All Lists]

Re: [ts-7000] Re: Booting from sd-card (ts-7500)

To:
Subject: Re: [ts-7000] Re: Booting from sd-card (ts-7500)
From: Jonatan Olofsson <>
Date: Thu, 25 Nov 2010 02:56:21 +0100


For future reference, here is how i solved the issue of booting from the sd without the TS-752.

Please comment if i've misunderstood something. Perhaps this could have been done in a more appropriate matter, and if so it would be interesting to know.

After setting the linuxrc symlink to linuxrc-sdroot and saving to the onboard flash (as suggested in the manual), I also edited the linuxrc-sdroot file and simply removed the condition in the statement

if [ "$bootdev" == "0x1" ]; then
  mount -oro /dev/nbd9 /mnt/root
fi

This removes the check for the bootmode in the case that an sd-card is present. Note however that the linuxrc-file later checks for certain files to be present on the sd-card before booting to it, so removing the sd-card during bootup will make the script fall back to the usual fastboot.

This does not only remove the need to manually pull pin 7 down, it also allows me to continue use the very same pin as the console tx.

Thank you for the help and hint of reading the linuxrc-files more closely, it certainly gave a lot more understanding of the boot process!

Best regards,
Jonatan Olofsson

On Tue, Nov 23, 2010 at 22:50, Jonatan Olofsson <> wrote:
David,

Thank you very much. You are right, i'm not using the TS-752. I thought, after reading the manual, that DIO_7 only set the default boot
source and that i could reach the SD by typing 'exit' in the ts-linux prompt. Thank you again for clearing that up.

I will also look into the boot-scripts as you suggested

Best regards,
Jonatan




On Tue, Nov 23, 2010 at 20:10, David <> wrote:
 



You don't mention the TS-752. If you are using it, make sure to set it do that you are booting from the SD card and not from the Flash. Otherwise you'll need to pull DIO_07 (MODE1) down by some other means.

I spent several days thoroughly confused by the boot modes in the TS-7500. Sure the docs explain it all, but it was not obvious to me for a while.

Perhaps the most confusing part is that booting from flash and from SD both look almost identical. The only difference is a small message saying the boot source.

When you boot from the SD, you initially boot into the initrd partition of the card which is (again) almost identical to the one in the Flash. However booting into the Flash initrd does not allow you (out of the box) to fall back to the SD Debian partition. Booting from the SD card will let you do that.

In the end it is possible to move from the flash to the SD debian partition, but a bit of work is required.

My suggestion is to spend some time looking at the different linuxrc scripts in the initrd partition to really understand what is going on at boot.

Hope this helps.

David



--- In ts-7000%40yahoogroups.com, "jonatan_olofsson" <> wrote:
>
> Hi all,
>
> I'm trying to get started developing on a ts-7500 i bought for a hobby-project of mine. So, to fire it up, i downloaded the 2gbsd-eclipse-latest.dd and transferred it to the mini-sd, seemingly without problems, i.e i can see four partitions, and mount them on my linux-pc.
>
> I then inserted the card into the onboard reader and booted into the flash, from where i typed 'exit' to boot to the sd-card. Then, however, it just does nothing for a while until the watchdog (i suppose) restarts the board into the flash memory.
>
> In /dev on the ts, i can see there are four partitions on /dev/sda, but when i try to mount them i get "mount: mounting /dev/sda4 on sd failed: No such device or address "
>
> Am i missing something here? What more do i need to do to boot linux?
>
> Best regards,
> Jonatan Olofsson
>





__._,_.___


Your email settings: Individual Email|Traditional
Change settings via the Web (Yahoo! ID required)
Change settings via email: =Email Delivery: Digest | m("yahoogroups.com?subject","ts-7000-fullfeatured");=Change Delivery Format: Fully Featured">Switch to Fully Featured
Visit Your Group | Yahoo! Groups Terms of Use | =Unsubscribe

__,_._,___
<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