1) Linux Kernel Compilation
Get the linux kernel from the tisdk folder :
/<FILE_PATH>/ti-sdk-beagleboard/board-support/linux-3.3.7-r115
a) Kernel Configuration
Cross compile the kernel with the default configuration or the customized configuration but be sure that the while customization kernel consist of all points mention in 1.b is selected.
make CROSS_COMPILE=arm-arago-linux-gnueabi-ARCH=arm
tisdk_beagleboard_defconfig
or
make CROSS_COMPILE=arm-arago-linux-gnueabi-ARCH=arm menuconfig
b) Make sure that the following point are selected ([*] in front of it):
Networking support
[*] TCP/IP networking
[*] IP: kernel level autoconfiguration
[*] IP: DHCP support
[*] IP: BOOTP support
[*] IP: RARP support
Device Drivers
[*] Network device support
USB Network Adapters
[*] SMSC LAN95XX based USB 2.0 10/100 ethernet devices
[*] USB support
[*] EHCI HCD (USB 2.0) support
File systems
[*] Network File Systems
NFS client support
[*] NFS client support for NFS version 3
[*] Root file system on NFS
c) uImage Creation
make CROSS_COMPILE=arm-arago-linux-gnueabi- ARCH=arm -j4 all
make CROSS_COMPILE=arm-arago-linux-gnueabi- uImage
d) SD card preparation
i) Format the sd card and make two partition as boot and other as root
ii) Copy the newly generated uImage , MLO, u-boot.bin, u-boot.img to the boot
partition
note: MLO, u-boot.bin, u-boot.img are present at this path
/<FILE_PATH>/ti-sdk-beagleboard/board-support/u-boot-2012.04.01
and uImage is present at this path /<FILE_PATH>/ti-sdk-
beagleboard/board-support/linux-3.3.7-r115/arch/arm/boot
2) File System Generation
a) Get filesystem from /<file_path>/ti-sdk-beagleboard/filesystem/tisdk-rootfs-beagleboard.tar.gz
b) Create a folder, and extract the file system as root user (don't use sudo)
3) NFS Server Configuration
a) Setting the NFS Server
install the nfs server
sudo apt-get install nfs-common nfs-kernel-server
b) Setup the export file
edit exports file present at “/etc/exports”
note: open file as root user
write this line in the export file
/<file_system_path> *(rw,nohide,insecure,no_subtree_check,async,no_root_squash)
note: * indicates all ip address are allowed to connect, to allow a specific ip address replace * by the ip address
c) Restart the NFS server service
sudo /etc/init.d/nfs-kernel-server restart
note: after restart NFS kernel daemon should start sucessfully, which is observe by checking “OK” statement on the terminal, or else set the proper export path
4) UBoot
a) Connect the board with power supply, ethernet cable, and the serial port.
b) Configure the serial port using minicom
sudo minicom -s
c) Selecting the tty device and saving the configuration
d) Insert the sd card.
e) Power on the board.
f) Before auto boot sequence hit enter button and enter the boot arguments.
i) setenv bootargs 'console=ttyO2,115200n8 noinitrd ip=dhcp rw root=/dev/nfs
nfsroot=<HOST_IP_ADDRESS>:<EXTRACTED_FILE_SYSTEM_PATH>
nolock rsize=4096 wrsize=4096'
ii) fatload mmc 0:1 0x80200000 uImage
iii)bootm 0x80200000
g) Now board will start booting
Note:
i) If at DHCP request is taking long time, check the internet connection
ii) If certain case kernel panic error message is displayed after the “root=” then
check the permissions given to the file system folder or corrects the export path
in exports file.
Get the linux kernel from the tisdk folder :
/<FILE_PATH>/ti-sdk-beagleboard/board-support/linux-3.3.7-r115
a) Kernel Configuration
Cross compile the kernel with the default configuration or the customized configuration but be sure that the while customization kernel consist of all points mention in 1.b is selected.
make CROSS_COMPILE=arm-arago-linux-gnueabi-ARCH=arm
tisdk_beagleboard_defconfig
or
make CROSS_COMPILE=arm-arago-linux-gnueabi-ARCH=arm menuconfig
b) Make sure that the following point are selected ([*] in front of it):
Networking support
[*] TCP/IP networking
[*] IP: kernel level autoconfiguration
[*] IP: DHCP support
[*] IP: BOOTP support
[*] IP: RARP support
Device Drivers
[*] Network device support
USB Network Adapters
[*] SMSC LAN95XX based USB 2.0 10/100 ethernet devices
[*] USB support
[*] EHCI HCD (USB 2.0) support
File systems
[*] Network File Systems
NFS client support
[*] NFS client support for NFS version 3
[*] Root file system on NFS
c) uImage Creation
make CROSS_COMPILE=arm-arago-linux-gnueabi- ARCH=arm -j4 all
make CROSS_COMPILE=arm-arago-linux-gnueabi- uImage
d) SD card preparation
i) Format the sd card and make two partition as boot and other as root
ii) Copy the newly generated uImage , MLO, u-boot.bin, u-boot.img to the boot
partition
note: MLO, u-boot.bin, u-boot.img are present at this path
/<FILE_PATH>/ti-sdk-beagleboard/board-support/u-boot-2012.04.01
and uImage is present at this path /<FILE_PATH>/ti-sdk-
beagleboard/board-support/linux-3.3.7-r115/arch/arm/boot
2) File System Generation
a) Get filesystem from /<file_path>/ti-sdk-beagleboard/filesystem/tisdk-rootfs-beagleboard.tar.gz
b) Create a folder, and extract the file system as root user (don't use sudo)
3) NFS Server Configuration
a) Setting the NFS Server
install the nfs server
sudo apt-get install nfs-common nfs-kernel-server
b) Setup the export file
edit exports file present at “/etc/exports”
note: open file as root user
write this line in the export file
/<file_system_path> *(rw,nohide,insecure,no_subtree_check,async,no_root_squash)
note: * indicates all ip address are allowed to connect, to allow a specific ip address replace * by the ip address
c) Restart the NFS server service
sudo /etc/init.d/nfs-kernel-server restart
note: after restart NFS kernel daemon should start sucessfully, which is observe by checking “OK” statement on the terminal, or else set the proper export path
4) UBoot
a) Connect the board with power supply, ethernet cable, and the serial port.
b) Configure the serial port using minicom
sudo minicom -s
c) Selecting the tty device and saving the configuration
d) Insert the sd card.
e) Power on the board.
f) Before auto boot sequence hit enter button and enter the boot arguments.
i) setenv bootargs 'console=ttyO2,115200n8 noinitrd ip=dhcp rw root=/dev/nfs
nfsroot=<HOST_IP_ADDRESS>:<EXTRACTED_FILE_SYSTEM_PATH>
nolock rsize=4096 wrsize=4096'
ii) fatload mmc 0:1 0x80200000 uImage
iii)bootm 0x80200000
g) Now board will start booting
Note:
i) If at DHCP request is taking long time, check the internet connection
ii) If certain case kernel panic error message is displayed after the “root=” then
check the permissions given to the file system folder or corrects the export path
in exports file.
No comments:
Post a Comment