1.5 KiB
1.5 KiB
We have two type of flashing
- (Production) Copy the files into the USB drive. Then boot into initramfs. Then flash the image into the eMMC.
- Flash the image directly into USB. And boot using it.
Flashing into eMMC
make release- Format the USB in vfat
- Copy out/[RELEASE].img.gz and out/board.itb to your usb drive's root
- Run the following commands one step at a time
usb start
usb tree
fatls usb 0:1 # For fat
ext4ls usb 0:1 # For ext4 if you insist
fatload usb 0 0x80000000 board.itb
extload usb 0 0x80000000 board.itb
setenv bootargs "console=ttyS0,115200 earlycon=uart8250,mmio,0x21c0500 root=/dev/ram0 rootwait rw"
bootm 0x80000000
- Once booted into initramfs, run
flash-emmc.sh
- Reboot into uboot, boot using the following commands
setenv kernel_addr_r 0xa0000000;
setenv bootargs "${bootargs_console} root=emmc:2 bootpart=A rw rootwait delayacct rootfstype=ext4";
ext4load mmc 0:2 ${kernel_addr_r} /boot/kernel.itb && bootm ${kernel_addr_r};
- You'll soon be booted into the console. After that, you can tail /var/log/monok8s/bootstrap.log to see the bootstrapping status
Flashing into USB drive
This will make your USB drive be the primary booting device.
On MacOS
- ./macos/flashusb.sh
On Windows (Work In Progress)
usb start;
setenv kernel_addr_r 0xa0000000;
setenv bootargs "${bootargs_console} root=usb:2 bootpart=A rw rootwait delayacct rootfstype=ext4";
ext4load usb 0:2 ${kernel_addr_r} /boot/kernel.itb && bootm ${kernel_addr_r};