ts-7000
[Top] [All Lists]

[ts-7000] Re: 7260: Installing Debian distro on an SD Card

To:
Subject: [ts-7000] Re: 7260: Installing Debian distro on an SD Card
From: "bowbaq74000" <>
Date: Tue, 24 Jul 2007 15:31:49 -0000

Hi Everyone !

I've got a TS7260 64 Mo RAM and I want to boot from a SDcard.
I follow step by step the jywmpg's method but I meet a problem.
After the RedBoot configuration :
      load -r -b 0x00218000 -h 192.168.1.12 zImage-7260_2k-ts11
      load -r -b 0x00600000 -h 192.168.1.12 ts7260-sdcard-initrd-1.02.gz
      exec -r 0x00600000 -s 448760 -b 0x00218000 -l 685808 -c "console=ttyAM0,115200 root=/dev/ram0 init=/linuxrc rw"

Everything's seems to be ok with TFTP downloads but after exec command I've this error message :

[.....]
Searching for NAND flash...
NAND device: Manufacturer ID: 0xec, Chip ID: 0x75 (Samsung NAND 32MiB 3,3V 8-bit
)
SEVERE WARNING: This module is known to have data corruption problems when used
with 512 byte sector NAND flash!!!<5>Using static partition definition
Creating 3 MTD partitions on "NAND 32MiB 3,3V 8-bit":
0x00000000-0x00004000 : "TS-BOOTROM"
0x00004000-0x01d04000 : "Linux"
0x01d04000-0x02000000 : "RedBoot"
NET4: Linux TCP/IP 1.0 for NET4.0
IP Protocols: ICMP, UDP, TCP, IGMP
IP: routing cache hash table of 512 buckets, 4Kbytes
TCP: Hash tables configured (established 4096 bind 8192)
NET4: Unix domain sockets 1.0/SMP for Linux NET4.0.
NetWinder Floating Point Emulator V0.97 (double precision)
RAMDISK: ext2 filesystem found at block 0
RAMDISK: Loading 1024 blocks [1 disk] into ram disk... done.
Freeing initrd memory: 438K
EXT2-fs warning: mounting unchecked fs, running e2fsck is recommended
VFS: Mounted root (ext2 filesystem).
Mounted devfs on /dev
Freeing init memory: 76K
Kernel panic: No init found. Try passing init= option to kernel.


I don't really understand since init=/linuxrc is already entered in RedBoot.

Any sugestions ?

Best Regards,
Romain


--- In "jywmpg" <> wrote:
>
> Eddie,
>
> Thanks again, but I think there is one little step missing from the
> instructions. I gather that, if the dd of the fastboot image changes
> the partition on the SD card, one has to reboot before proceeding,
> just as if you had altered the partition table using fdisk. If you
> don't, fsck fails because part3 does not exist.
>
> As promised, here is:
>
> How I created an SD Card for the TS-7260, YMMV:
>
> # gain access to the USB Flash Drive
> loadUSBModules.sh
> mount /dev/scsi/host0/bus0/target0/lun0/part1 /mnt/
>
> #
> # Setup the SD Card to be boot-pivot-able
> #
>
> date "+%D, %T - Downloading SD Card Image"
> cd /mnt/sts
> wget -q
> ftp://ftp.embeddedarm.com/ts-arm-linux-cd/binaries/ts-images/
fastboot-7300-sdcard-7-6-2006.dd.bz2
>
> date "+%D, %T - Verifing its correctness..."
> md5sum fastboot-7300-sdcard-7-6-2006.dd.bz2
> date "+%D, %T - Should be: "
> echo "a7d42537db49656c646c3123e153d0f3
> fastboot-7300-sdcard-7-6-2006.dd.bz2"
>
> date "+%D, %T - Unzipping the image"
> bunzip2 fastboot-7300-sdcard-7-6-2006.dd.bz2
>
> date "+%D, %T - Initializing the SD Card"
> dd if=/dev/zero of=/dev/sdcard0/disc0/disc bs=1M count=256
> 256+0 records in
> 256+0 records out
>
> date "+%D, %T - Copying image to the SD Card"
> dd if=fastboot-7300-sdcard-7-6-2006.dd of=/dev/sdcard0/disc0/disc
bs=1M
> 238+1 records in
> 238+1 records out
>
> # must reboot here!!!!!!
> shutdown -r now
>
> # log back in
>
> # verify the new file system
> fsck.ext2 -y /dev/sdcard0/disc0/part3
> e2fsck 1.37 (21-Mar-2005)
> /dev/sdcard0/disc0/part3: clean, 14718/60000 files, 227014/239104
blocks
>
> # reclaim the remaining space by creating a fourth partition
>
> fdisk /dev/sdcard0/disc0/disc
> n
> p
> 954
>
> p
> Disk /dev/sdcard0/disc0/disc: 2032 MB, 2032664576 bytes
> 16 heads, 32 sectors/track, 7754 cylinders
> Units = cylinders of 512 * 512 = 262144 bytes
>
> Device Boot Start End Blocks Id
System
> /dev/sdcard0/disc0/part1 1 6 1520
da
> Unknown
> /dev/sdcard0/disc0/part2 7 10 1024
da
> Unknown
> /dev/sdcard0/disc0/part3 20 953 239104
83
> Linux
> /dev/sdcard0/disc0/part4 954 7754 1741056
83
> Linux
> w
>
> # Reboot and verify partition exists
> shutdown -r now
>
> # log back in
>
> fdisk /dev/sdcard0/disc0/disc
> p
> # Disk /dev/sdcard0/disc0/disc: 2032 MB, 2032664576 bytes
> # 16 heads, 32 sectors/track, 7754 cylinders
> # Units = cylinders of 512 * 512 = 262144 bytes
> #
> # Device Boot Start End Blocks Id
System
> # /dev/sdcard0/disc0/part1 1 6 1520
> da Unknown
> # /dev/sdcard0/disc0/part2 7 10 1024
> da Unknown
> # /dev/sdcard0/disc0/part3 20 953 239104
> 83 Linux
> # /dev/sdcard0/disc0/part4 954 7754 1741056
> 83 Linux
> #
> # Command (m for help):q
>
>
> # create a file system on the new fourth partition
> mkfs.ext2 /dev/sdcard0/disc0/part4
> mke2fs 1.37 (21-Mar-2005)
> Filesystem label=
> OS type: Linux
> Block size=4096 (log=2)
> Fragment size=4096 (log=2)
> 217728 inodes, 435264 blocks
> 21763 blocks (5.00%) reserved for the super user
> First data block=0
> 14 block groups
> 32768 blocks per group, 32768 fragments per group
> 15552 inodes per group
> Superblock backups stored on blocks:
> 32768, 98304, 163840, 229376, 294912
>
> Writing inode tables: done
> Writing superblocks and filesystem accounting information: done
>
> This filesystem will be automatically checked every 29 mounts or
> 180 days, whichever comes first. Use tune2fs -c or -i to override.
>
> # mount the new fs on part4 (assumes mount point exists)
> mount -t ext2 /dev/sdcard0/disc0/part4 /sdcard_p4
> # while we are at it, mount part3, too (assumes mount point exists)
> mount -t ext2 /dev/sdcard0/disc0/part3 /sdcard
>
> # demonstrate success
> $ df -k
> Filesystem 1k-blocks Used Available Use% Mounted on
> /dev/root 29680 8336 21344 28% /
> /dev/sdcard0/disc0/part3 231527 219437 12090 95% /sdcard
> /dev/sdcard0/disc0/part4 1713680 20 1626608 0% /
sdcard_p4
>
> #
> # Setup the new machine to boot from an initrd, then pivot to the
SD
> Card, partition 3
> #
>
> # Load the new kernel and initial ramdisk to RAM
> # assumes tftpd running on dev machine w/ kernel and init ramdisk
image
>
> # reboot new machine and issue Control-C within one second of reboot
> # if Control-C does not seem to work, make sure flow control is
turned
> off in your Hyperterminal session
>
> # set up networking in redboot
> fconfig
>
> Run script at boot: true
> Boot script:
> .. fis load vmlinux -b 0x00218000
> .. exec -c "console=ttyAM0,115200"
>
> Boot script timeout (100ms resolution): 1
> Use BOOTP for network configuration: false
> Gateway IP address: 192.168.1.11
> Local IP address: $IPADR
> Local IP address mask: 255.255.255.0
> Default server IP address: $IPADR
> Network hardware address [MAC]: 0x00:0xD0:0x69:0x40:0x78:0xCF
> GDB connection port: 9000
> Force console for special debug messages: false
> Network debug at boot time: false
>
> #
> # Test the kernel, init ram disk (initrd), and root file system on
the
> SD card
> #
> load -r -b 0x00218000 -h 192.168.1.12 zImage-7260_2k-ts11
> load -r -b 0x00600000 -h 192.168.1.12 ts7260-sdcard-initrd-1.02.gz
> exec -r 0x00600000 -s 448760 -b 0x00218000 -l 685808 -c
> "console=ttyAM0,115200 root=/dev/ram0 init=/linuxrc rw"
>
> #
> # System should boot Debian with the root file system on part3 of
the
> SD Card. IP address may have changed, if DHCP on your router is so
> inclined.
> # Log back in, setting up accounts as necessary. Can't telnet in as
> root, for instance.
> #
>
> # demonstrate successful pivot
> $ df -k
> Filesystem 1K-blocks Used Available Use% Mounted on
> /dev/sdcard0/disc0/part3
> 231527 219462 12065 95% /
>
> # verify that the part4 is still there
> $ mount /dev/sdcard0/disc0/part4 /mnt/
> $ df -k
>
> Filesystem 1K-blocks Used Available Use% Mounted on
> /dev/sdcard0/disc0/part3
> 231527 219463 12064 95% /
> /dev/sdcard0/disc0/part4
> 1713680 20 1626608 1% /mnt
>
> Q.E.D.
>
> The redboot sequence above is essentially the "Load a kernel and
initial
> ramdisk to RAM from a TFTP server" from
> http://www.seiner.com/ts7000/index.php/Booting%20to%20SDCard
>
> Once you are happy with this kernel, initrd, and distro combination,
> move onto the remaining steps, ultimately booting the new combo
> automatically via redboot fconfig.
>
> Cheers,
>
> jw

__._,_.___


SPONSORED LINKS
Single board computer Hardware Computer running slow
Linux os Single board

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>
  • [ts-7000] Re: 7260: Installing Debian distro on an SD Card, bowbaq74000 <=
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