Chapter 5. Booting the Installation System On some systems, U-Boot predefines a set of environment variables with suitable load addresses: kernel_addr_r, ramdisk_addr_r and fdt_addr_r. You can check whether they are defined by running If they are not defined, you have to check your system’s documentation for appropriate values and set them manually. For systems based on Allwinner SunXi SOCs (e.g. the Allwinner A10, architecture name “sun4i” or the Allwinner A20, architecture name “sun7i”), you can e.g. use the follwing values: When the load addresses are defined, you can load the images into memory from the previously defined tftp server with The third part is setting the kernel commandline and actually executing the loaded code. U-Boot passes the content of the “bootargs” environment variable as commandline to the kernel, so any pa- rameters for the kernel and the installer - such as the console device (see Section 5.3.1) or preseeding options (see Section 5.3.2 and Appendix B) - can be set with a command like The exact command to execute the previously loaded code depends on the image format used. With uImage/uInitrd, the command is and with native Linux images it is Note: When booting standard linux images, it is important to load the initial ramdisk image after the kernel and the dtb as U-Boot sets the filesize variable to the size of the last file loaded and the bootz command requires the size of the ramdisk image to work correctly. In case of booting a platform- specific kernel, i.e. a kernel without device-tree, simply omit the ${fdt_addr_r} parameter. 33 bootz ${kernel_addr_r} ${ramdisk_addr_r}:${filesize} ${fdt_addr_r} bootm ${kernel_addr_r} ${ramdisk_addr_r} ${fdt_addr_r} setenv bootargs console=ttyS0,115200 rootwait panic=10 tftpboot ${kernel_addr_r} <filename of the kernel image> tftpboot ${fdt_addr_r} <filename of the dtb> tftpboot ${ramdisk_addr_r} <filename of the initial ramdisk image> setenv kernel_addr_r 0x46000000 setenv fdt_addr_r 0x47000000 setenv ramdisk_addr_r 0x48000000 printenv kernel_addr_r ramdisk_addr_r fdt_addr_r