Anda di halaman 1dari 3

Porting of Linux on the Beagle Board

For porting the linux on the Beagle Board we need following things:-
1. Linux-BeagleBoard.tar.bz --> linux kernel for Beagle Board
2. Srathbox-toolhain-ar!-linux-s2""#$%-&1sb%-1.".'-1-i%().tar.gz -->ross
*o!piler.
%. +ngstro!-Beagleboard-de!o-i!age-glib-ipk-2""(.1-test-2""(111'-
beagleboard.rootfs.tar.bz2 --> file s,ste! for Beagle Board
-. .L/0u-boot.bin0u-boot-f.bin0ra!disk.gz01ernel 2u3!age40reset.sr 0x-loader
i!age0
nor!al.sr
Step 1:
First of all 5xtrat tarballs the files where e6er ,ou want 2sa, output file4.Just untar
your .bz/.gz files only through commond line haing the superuser permission
!ith you.
5g:
tar "x#f $path to the file linux-BeagleBoard.tar.bz> "% 7path to the output file>
tar "xzf 7path to the file srathbox-toolhain-ar!-linux-s2""#$%-&1sb%-1.".'-1-
i%().tar.gz> "% 7path to the output file>
Step&:
*op, !ki!age to 8bin 9 hange the per!ission using h!od.
5g:
cp $path to m'image( /bin
chmod )x /bin/m'image
Step*:
5xport the path of the ar! ross o!piler0i.e:-
export P+,-.$path to scrachbox(/scratchbox/compilers/arm"linux"cs&//01*"
21sb*/arm"none"linux"gnueabi/bin:3P+,-
Step4:
:ow *onfigure the linux kernel aording to the Board Speifiation i.e e need to
o!pile
the kernel with the Basi Board Speifi defnition.
ma'e omap*5beagle5defconfig
ma'e xconfig or ma'e menuconfig
and selet 9 enable the dri6er whih ,ou re$uired while ,ou are doing !ake xonfig
or !ake
!enuonfig.
ma'e u6mage
!ake u3!age is !aking the u3!age for the linux kernel it;s size around 1.&.B to
2.&.B.+fter
exeuting this o!!ond the u3!age is found in arh8ar!8boot loation .
Step 2:
:ow <e ha6e !ake partion of our ..*8S= ard for this we an use fdis' o!!ond
whih is
present in al!ost e6er, linux based s,ste!8o!puter. Be arefull whlile ,ou are
running these
o!!onds .
%hec' 7hich one is your deice :
3 df "l 88 list the all file s,ate!s with de6ie na!e like 8de68sdb>
? sudo fdis' /de/sdb> 88to reate a new partition in !e!or, ard.
*o!!and 2! for help4: o 88 *reate a new partiontable on the !e!or, ard.
*o!!and 2! for help4: p
*o!!and 2! for help4: x 88@o get into expert !ode
5xpert o!!and 2! for help4: h 88:u!ber of heads.
5xpert o!!and 2! for help4: s 88:u!aler of setors
5xpert o!!and 2! for help4: c 88:u!ber of ,linders
5xpert o!!and 2! for help4: r 88return fro! 5xpert!ode
*o!!and 2! for help4: n 88reate a new partion
*o!!and ation
e extended
p pri!ar, partion 2 1--4
p //alwa,s use Ari!art, Aartion.
Aartition nu!ber 21--4: 1
First ,linder 21--(20default 14 : 1
last ,linder0B,linder or BsizeC10.0D E21--(20default -(24 : 8*
*o!!and 2! for help4: n 88reate a new partion
*o!!and ation
e extended
p pri!ar, partion 2 1--4
p
Aartition nu!ber 21--4: &
First ,linder 21--(20default 14 : 84
last ,linder0B,linder or BsizeC10.0D E21--(20default -(24 : 49&
*o!!and 2! for help4: ! 88 to write that partition to the !e!or,.
@he partition table has been alteredF
*alling iotl2 4 to re read partition table.
partions are successfully created .
Now we need to formate partitions for that we use mkfs commond .
1. fat%2 -> Gsed b, boot partition.
2. ext28ext% -> Gsed for file s,ste!.
3 sudo m'fs.msdos ": *& /de/sdb;
now u!ount the patition.
3 sudo umount /de/sdbx
3 sudo m'fs.ext& /de/sdb;
u!ount the patitions if the, are !ounted. Here the patitions are o!plete.
Step 8:
@his is the final step that we need to do .Please follow the sequence if u are not
following
the sequence then might have been some problem with bootin that Beagle Board.
*op, following files to the F+@ files,ste! of !e!or, ard se$uene wise.
1. <L= as <L=
&. u"boot as u"boot.bin
*. u"boot for flash as u"boot"f.bin
4. ramdis' image as ramdis'.gz
2. >ernel ?u6mage@ as u6mage.bin
8. reset.scr as boot.scr
0. x"loader image as x"load.bin.ift
9. normal.scr file as normal.scr
Ag:
cp 7path of .L/> 8!edia87na!e of F+@ file S,ste!>8<L=
cp 7path of u-boot> 8!edia87na!e of F+@ file S,ste!>8u"boot"f.bin
. . .
. . .
. . .
cp 7path of nor!al.sr> 8!edia87na!e of F+@ file S,ste!>8normal.scr
In the end extract the Angstrom-Beagleboard-demo-image-glibc-ipk-200.!-test-
200!!!"-
beagleboard.rootfs.tar.b#2 to the e$t2%e$t& filesystem.
tar "x#f 7path to +ngstro!-Beagleboard-de!o-i!age-glib-ipk-2""(.1-test-
2""(111'-
beagleboard.rootfs.tar.bz2> "% 8!edia87na!e of the ext&/ext* file s,ste!>

Anda mungkin juga menyukai