Archive for April, 2010

30 Apr 2010

Linux 2.6.29 image boot on TS-7400 (Embedded Arm)

No Comments Embedded Linux

Linux 2.6.29 image boot on TS-7400

My experience based on the complete description by Petr Ledvina at the mailing list.

Download sdcard image file
# wget ftp://ftp.embeddedarm.com/ts-arm-sbc/ts-7400-linux/binaries/ts-images/512mbsd-74\
00-linux2629-lenny-eabi.dd.bz2

unzip it
# bzip2 -d 512mbsd-7400-linux2629-lenny-eabi.dd.bz2

extract individual partitons
# 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 )

Create the sdcard correct partitions(mine was mounted at /dev/sdc)

start fdisk on sd card:
# fdisk /dev/sdc

Partition 1- Sequence of commands
n : create new partition
p: primary partition
enter (1 for default first cilinder)
5

Partition 2 – Sequence of commands
n
p
enter
+3M

Partition 3 – Sequence of commands
n
p
enter
+2M

Partition 4 – Sequence of commands
n
p
enter
enter

Additional Commands – Changing type of partitions 2 and 3 to 0xda
(command) t
(partition) 2
da

(command)t
(partition) 3
da

w -> write

—–
Now copy mbr, part2 and part3:
# dd if=boot.dd of=/dev/sdc
# dd if=part2.dd of=/dev/sdc2 bs=1M
# dd if=part3.dd of=/dev/sdc3 bs=1M

Create jfs filesystem on part4:
# mkfs.jfs /dev/sdc4
mount it and extract root filesystem to it:
# mount /dev/sdc4 part4
# cd part4
# tar -xjS -b8 -p -f ../part4.tar.bz2
# umount part4
# sync

Boot and enoy the development using the 2.6.29  that for myself solved most of the issues I was facing when running the previous kernel provided by Embedded Arm.

03 Apr 2010

Just Spreading TechSparked

No Comments Lista de blogs

Just promoting this great technology/community site created with lot of work and conducted by Seth Sandler et al…

techsparked is a social platform for people that are sparked (inspired) by creative and emergent technology. techsparked can be used to learn, share, create, promote, and meet people with similar interests and goals. We aim to have a friendly environment and involve not just people already sparked (inspired) by technology, but spark new people too. Learn more and get started today!

techsparked is like the deviantART.com or behance.net for creative technology!


WP SlimStat