| | 265 | == Booting to a kernel/rootfs on the microSD |
| | 266 | This assumes the bootloader will remain on the eMMC, but then we switch to the microSD for the kernel/rootfs. |
| | 267 | |
| | 268 | Run the following commands in the uboot bootloader command prompt on the Newport SBC bootloader serial console: |
| | 269 | {{{ |
| | 270 | |
| | 271 | #This sets the bootargs, make special note of the root = and adjust partition as necessary |
| | 272 | setenv bootargs 'cma=64M coherent_pool=16M net.ifnames=0 root=/dev/mmcblk1p1 rw rootwait console=ttyAMA0,115200n8 earlycon=pl011,0x87e028000000' |
| | 273 | |
| | 274 | #This loads the kernel file (Image) from folder boot (on microSD) into memory |
| | 275 | ext4load mmc 1:1 ${kernel_addr_r} boot/Image |
| | 276 | |
| | 277 | #This boots the board |
| | 278 | booti ${kernel_addr_r} - ${fdtcontroladdr} |
| | 279 | }}} |
| | 280 | |
| | 281 | Troubleshooting: |
| | 282 | * Use the ext4ls to confirm you can read the microSD and see the kernel in the boot folder |
| | 283 | {{{ |
| | 284 | GW6304-B> ext4ls mmc 1:1 boot |
| | 285 | <DIR> 4096 . |
| | 286 | <DIR> 4096 .. |
| | 287 | 12066824 Image |
| | 288 | }}} |
| | 289 | |