Hello All,
I followed the walkthrough from Peter, and everything worked well. However, I
need to enable High Resolution Timers in the kernel. Because of this, I need
compile the kernel and load it in the 2nd partition of SD card.
I haven't found anything about the configuration of the kernel for ts-7400 and
how to put it correctly in SD.
So, if anyone knows where I can find these informations, I'll be grateful.
Best Regards.
Günter N. Loch
--- In Petr Ledvina <> wrote:
>
> Ok - here is my way to make correct sd card from
> 512mbsd-7400-linux2629-lenny-eabi
> It may be a little more complicated than necesary, but it works for me..
>
> Download sdcard image file
> # wget
> ftp://ftp.embeddedarm.com/ts-arm-sbc/ts-7400-linux/binaries/ts-images/512mbsd-7400-linux2629-lenny-eabi.dd.bz2
> unzip it
> # bzip2 -d 512mbsd-7400-linux2629-lenny-eabi.dd.bz2
>
> extract individual partitons (*1)
> # dd if=512mbsd-7400-linux2629-lenny-eabi.dd of=part2.dd bs=512
> skip=8704 count=5120
> do not copy entire part3, end of partition contains lot of zeros,
> block count was decreased to ignore them (using hexdump to find end of
> data)
> # dd if=512mbsd-7400-linux2629-lenny-eabi.dd of=part3.dd bs=512
> skip=16896 count=2688
>
> extract master boot record:
> # dd if=512mbsd-7400-linux2629-lenny-eabi.dd of=boot.dd bs=446 count=1
>
> copy data from partition 4:
> # mkdir part4
> # mount 512mbsd-7400-linux2629-lenny-eabi.dd part4 -oloop,offset=$((25088))
> # cd part4
> # tar -jcS -b8 --one -f ../part4.tar.bz2 .
> # umount part4
>
> You can modify initrd linuxrc scripts in part3 ( mount part3.dd part3 -oloop )
>
> Now create sd card (my sdcard is mapped to /dev/sdd, be carefull to
> use correct device!)
>
> start fdisk on sd card:
> # fdisk /dev/sdd
>
> delete all existing partitions using d command
>
> Create new partitions (command n)
> First partition is unused, just create it, I user cylinder 5 as end
> Partition 2 will hold kernel image, starting from default, size +3M
> (zImage si about 2.5meg). Maybe larget partition can be usefull
> Partition 3 is initrd, I used +2M as size
> Partition 4 is root fs, use all available space
>
> change type of partition 2 and 3 to 0xda (t command)
>
> write it to disk (w)
>
> (*2)
>
>
> Now copy mbr, part2 and part3:
> # dd if=boot.dd of=/dev/sdd
> # dd if=part2.dd of=/dev/sdd2 bs=1M
> # dd if=part3.dd of=/dev/sdd3 bs=1M
>
>
> Create jfs filesystem on part4:
> # mkfs.jfs /dev/sdd4
> mount it and extract root filesystem to it:
> # mount /dev/sdd4 part4
> # cd part4
> # tar -xjS -b8 -p -f ../part4.tar.bz2
> # umount part4
> # sync
>
> And it's done ;-) Hope this will help
>
> Boots fine on my board with TS-SDBOOT bootloader
>
>
>
> *1:
>
> fdisk complains about different logical and physical addresses on
> image - i decided to build new partition table
> Disk 512mbsd-7400-linux2629-lenny-eabi.dd: 255 heads, 63 sectors, 0 cylinders
>
> Nr AF Hd Sec Cyl Hd Sec Cyl Start Size ID
> 1 00 8 25 0 14 42 8 512 8192 0c
> Partition 1 has different physical/logical beginnings (non-Linux?):
> phys=(0, 8, 25) logical=(0, 8, 9)
> Partition 1 has different physical/logical endings:
> phys=(8, 14, 42) logical=(0, 138, 10)
> Partition 1 does not end on cylinder boundary.
> 2 00 14 43 8 2 38 14 8704 5120 da
> Partition 2 has different physical/logical beginnings (non-Linux?):
> phys=(8, 14, 43) logical=(0, 138, 11)
> Partition 2 has different physical/logical endings:
> phys=(14, 2, 38) logical=(0, 219, 27)
> Partition 2 does not end on cylinder boundary.
> 3 00 4 61 17 7 21 20 16896 3072 da
> Partition 3 has different physical/logical beginnings (non-Linux?):
> phys=(17, 4, 61) logical=(1, 13, 13)
> Partition 3 has different physical/logical endings:
> phys=(20, 7, 21) logical=(1, 61, 60)
> Partition 3 does not end on cylinder boundary.
> 4 00 11 18 25 15 29 969 25088 921600 83
> Partition 4 has different physical/logical beginnings (non-Linux?):
> phys=(25, 11, 18) logical=(1, 143, 15)
> Partition 4 has different physical/logical endings:
> phys=(969, 15, 29) logical=(58, 236, 50)
> Partition 4 does not end on cylinder boundary.
>
> *2:
> this is my sdcard layout:
> Disk /dev/sdd: 1019 MB, 1019215872 bytes
> 32 heads, 61 sectors/track, 1019 cylinders
> Units = cylinders of 1952 * 512 = 999424 bytes
>
> Device Boot Start End Blocks Id System
> /dev/sdd1 1 5 4849+ 83 Linux
> /dev/sdd2 6 9 3904 da Non-FS data
> /dev/sdd3 10 12 2928 da Non-FS data
> /dev/sdd4 13 1019 982832 83 Linux
>
>
> Petr
>
------------------------------------
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/
|