diff options
author | lonkaars <loek@pipeframe.xyz> | 2024-02-04 18:31:58 +0100 |
---|---|---|
committer | lonkaars <loek@pipeframe.xyz> | 2024-02-04 18:31:58 +0100 |
commit | 0c5557c257b36e8456ab5c0d8473e9505534c424 (patch) | |
tree | e00a6e34aac332123cba529b7c58c156561adc9a | |
parent | 9a993336835d38600fd740af01af6e68bf9f1af7 (diff) |
auto start the linux kernelweek2
-rw-r--r-- | .gitignore | 1 | ||||
-rw-r--r-- | makefile | 3 | ||||
-rw-r--r-- | uboot.txt | 15 |
3 files changed, 19 insertions, 0 deletions
@@ -1,3 +1,4 @@ state/* !state/gen mnt +uboot.env @@ -55,10 +55,13 @@ bootloader/.config: state/submodules state/container_img .PHONY: build_bootloader build_bootloader: bootloader/.config state/container_img $(CTRIZE) $(MAKE) -C bootloader +uboot.env: uboot.txt + $(CTRIZE) bootloader/tools/mkenvimage -p 0x00 -s 0x20000 -o $@ $< # NOTE: MLO MUST be copied first BOOTLOADER_FILES += bootloader/MLO BOOTLOADER_FILES += bootloader/u-boot.img BOOTLOADER_FILES += bootloader/u-boot.dtb +BOOTLOADER_FILES += uboot.env $(BOOTLOADER_FILES): build_bootloader kernel/.config: state/submodules state/container_img diff --git a/uboot.txt b/uboot.txt new file mode 100644 index 0000000..44f6d3c --- /dev/null +++ b/uboot.txt @@ -0,0 +1,15 @@ +# do not wait for three seconds +bootdelay=0 + +# kernel arguments +bootargs=console=ttyS0,115200n8 root=/dev/mmcblk0p2 rw rootfstype=ext4 rootwait + +# boot command (three commands separated by semicolons): +# 1. load zImage format kernel at address 0x80008000 +# 2. load device tree at address 0x82000000 +# 3. start the kernel (kernel is in zImage format, so bootz is used here) +bootcmd=fatload mmc 0:1 0x80008000 zImage ; fatload mmc 0:1 0x82000000 am335x-boneblack.dtb ; bootz 0x80008000 - 0x82000000 + +# happy editor +# vim:ft=sh + |