Changes

Jump to: navigation, search

Booting Linux Kernel

1,929 bytes added, 14:16, 15 October 2019
no edit summary
{{InfoBoxTop}}
{{Applies To Linux}}
{{AppliesToNaonFamily}}
{{AppliesToLizard}}
{{Applies To Diva}}
{{Applies To Bora}}
{{Applies To BoraX}}
{{Applies To BoraLite}}
{{AppliesToAxel}}
{{AppliesToAxelLite}}
{{AppliesToAxelEsatta}}
{{AppliesToSBCLynx}}
{{AppliesToAXELULite}}
{{InfoBoxBottom}}
* has a proper subnet IP address
If your system does not match this configuration, just change the necessary variables and store them permanently with the u-boot <code>setenv/saveenv</code> commands. To do that, from the U-boot shell, please check the following parameters and set them accordingly with your host and target configuration: # <code>serverip</code> - IP address of the host machine running the tftp/nfs server# <code>ipaddr</code> - IP address of the target# <code>ethaddr</code> - MAC address of the target# <code>netmask</code> - Netmask of the target# <code>gateway</code> - IP address of the gateway# <code>netdev</code> - Ethernet device name# <code>rootpath</code> - Path to the NFS-exported directory# <code>bootfile</code> - Path to the kernel binary image on the tftp server# <code>fdtfile</code> - Path to the device tree binary image on the tftp server# <code>nfsargs</code> - Kernel command line with parameters for loading the root file system through NFS
To run this configuration just issue the command
<pre>run net_nfs</pre>
 
== Booting from SD/MMC ==
 
When a bootable SD/microSD/MMC is available and the carrier board provides a SD/microSD/MMC slot, the system can boot from the card.
 
Assuming that:
 
* the first (if more that one is available) partition of MMC is formatted as FAT12/16 or FAT32, is marked as primary and is active
* the first partition contains, besides the ''MLO'' (U-Boot 1st stage) and u-boot.bin (U-Boot 2nd stage) files, the ''uImage'' file (which is the kernel image)
* the second partition is formatted as ext3 and contains a plain root file system
 
the following commands can be used to start the system reading the kernel from the card boot partition and mounting the root file system stored in the second partition (/dev/mmcblk0p2):
 
<pre>
mmc rescan 0
fatload mmc 0 81000000 uImage
setenv mmcargs 'setenv bootargs root=/dev/mmcblk0p2 rw'
run mmcargs addip addcons addmem
bootm 81000000
</pre>
== Automatic boot ==
8,154
edits

Navigation menu