Skip to content

Commit

Permalink
chore: directly use bootargs instead of cmdline
Browse files Browse the repository at this point in the history
  • Loading branch information
koehlma committed Nov 21, 2023
1 parent 7d379e1 commit bebaf97
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
3 changes: 1 addition & 2 deletions boot/uboot/boot.sh
Original file line number Diff line number Diff line change
Expand Up @@ -47,12 +47,11 @@ fi
##############################################################################

echo Bootpart: ${bootpart}
echo Cmdline: ${cmdline}
echo Bootargs: ${bootargs}

load mmc 0:${bootpart} ${kernel_addr_r} ${kernel_file}
setenv kernel_comp_addr_r ${loadaddr}
setenv kernel_comp_size 0x4000000
setenv bootargs ${cmdline}
# Try booting `zImage`.
booti ${kernel_addr_r} - ${fdt_addr}
# Try booting `uImage`.
Expand Down
2 changes: 1 addition & 1 deletion boot/uboot/boot_env.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
import struct

cmdline = "console=serial0,115200 console=tty1 rootfstype=ext4 fsck.repair=yes rootwait panic=60 root=PARTUUID=2ddb0742-05 init=/usr/bin/rugpi-ctrl"
environ = [f"cmdline={cmdline}".encode("ascii")]
environ = [f"bootargs={cmdline}".encode("ascii")]

data = b"\0".join(environ) + b"\n"

Expand Down

0 comments on commit bebaf97

Please sign in to comment.