TS-7800 High-End Performance with Embedded Ruggedness |
|
Getting Started with TS-7800 |
|
Technologic Systems FTP server |
/dev/tssdcardb: the whole device
/dev/tssdcardb1: vfat partition with Eclipse IDE on 2GB or bigger cards or 4MB empty
/dev/tssdcardb2: 4MB for the uncompressed Linux Kernel Image
/dev/tssdcardb3: 4MB for the uncompressed initial ramdisk with busybox filesystem
/dev/tssdcardb4: complete Debian Linux filesystems
This quick setup explains how to configure your TS-7800 to boot your custom version of the Kernel and Root Filesystem from the SD card. Note that all the SD card preparation is done here on the host (running Fedora8), using a SD card USB adapter.
The first step will be to prepare a new SD card with the 4 partitions that the on-board Flash boot load is expecting. Here is the 2GB SD card flash partition (given as an example):
Disk /dev/sdb: 2045 MB,
2045247488 bytes
63 heads, 62 sectors/track, 1022 cylinders
Units = cylinders of 3906 * 512 = 1999872 bytes
Disk identifier: 0x00000000
Device
Boot Start End Blocks
Id System
/dev/sdb1 1 760
1482752 c W95 FAT32 (LBA)
/dev/sdb2
760 762
4096 da
Non-FS data
/dev/sdb3
762 764 4096
da Non-FS data
/dev/sdb4
764 999 459648
83 Linux
We are interested in these 2 partitions:
· /dev/sdb2 We will store the Linux kernel (uncompressed image).
· /dev/sdb4 We will store the Root File System (EXT3).
Assuming we have built everything on the host (cross-compiler, libraries+utilities, linux, and the root filesystem), here is the step to install Linux on the SD Flash:
~$ cd sf/cross-stuff/armle/TS-7800/build/linux-2.6.21-ts/arch/arm/boot/
~/sf/cross-stuff/armle/TS-7800/build/linux-2.6.21-ts/arch/arm/boot$
sudo cp Image /dev/sdb2
~/sf/cross-stuff/armle/TS-7800/build/linux-2.6.21-ts/arch/arm/boot$
sync
Now let’s copy the root filesystem on the 4th partition.
~/sf/cross-stuff/armle/TS-7800/build$ sudo umount /dev/sdb3 /dev/sdb1 /dev/sdb4
~/sf/cross-stuff/armle/TS-7800/build$ sudo mkfs.ext3 /dev/sdb4
~/sf/cross-stuff/armle/TS-7800/build$ sync
~/sf/cross-stuff/armle/TS-7800/build$ mkdir temp
~/sf/cross-stuff/armle/TS-7800/build$ sudo mount -t ext3 /dev/sdb4 temp
~/sf/cross-stuff/armle/TS-7800/build$ sudo cp -a ../rootfs/*
temp/
~/sf/cross-stuff/armle/TS-7800/build$ sync
~/sf/cross-stuff/armle/TS-7800/build$ sudo umount temp
~/sf/cross-stuff/armle/TS-7800/build$ sudo eject /dev/sdb
Insert now this SD on the TS-7800, and the boot loader should boot this image!