Boot.ini that omits initrd.

Post Reply
akschu
Posts: 9
Joined: Tue Jan 28, 2020 9:56 am
languages_spoken: english
ODROIDs: HC1, Advanced Go
Has thanked: 0
Been thanked: 0
Contact:

Boot.ini that omits initrd.

Unread post by akschu » Wed Jan 29, 2020 8:30 am

Hello,

I don't need initrd for my kernel/distro combination (slackware, booting off of ext4), so I would like to omit building an initrd image.

My current boot.ini is basically the default:

Code: Select all

ODROIDXU-UBOOT-CONFIG
setenv initrd_high "0xffffffff"
setenv fdt_high "0xffffffff"
setenv macaddr "00:1e:06:61:7a:39"
setenv vout "hdmi"
setenv cecenable "false" # false or true
setenv disable_vu7 "false" # false
setenv ddr_freq 825
setenv external_watchdog "false"
setenv external_watchdog_debounce "3"
setenv HPD "true"
setenv bootrootfs "console=tty1 console=ttySAC2,115200n8 root=/dev/mmcblk1p3 rootwait ro fsck.repair=yes net.ifnames=0"
fatload mmc 0:1 0x40008000 zImage
fatload mmc 0:1 0x42000000 uInitrd
setenv fdtloaded "false"
if test "x${board_name}" = "x"; then setenv board_name "xu4"; fi
if test "${board_name}" = "xu4"; then fatload mmc 0:1 0x44000000 exynos5422-odroidxu4.dtb; setenv fdtloaded "true"; fi
if test "${board_name}" = "xu3"; then fatload mmc 0:1 0x44000000 exynos5422-odroidxu3.dtb; setenv fdtloaded "true"; fi
if test "${board_name}" = "xu3l"; then fatload mmc 0:1 0x44000000 exynos5422-odroidxu3-lite.dtb; setenv fdtloaded "true"; fi
if test "${fdtloaded}" = "false"; then fatload mmc 0:1 0x44000000 exynos5422-odroidxu4.dtb; setenv fdtloaded "true"; fi
fdt addr 0x44000000
setenv hdmi_phy_control "HPD=${HPD} vout=${vout}"
if test "${cecenable}" = "false"; then fdt rm /soc/cec@101B0000; fi
if test "${disable_vu7}" = "false"; then setenv hid_quirks "usbhid.quirks=0x0eef:0x0005:0x0004"; fi
if test "${external_watchdog}" = "true"; then setenv external_watchdog "external_watchdog=${external_watchdog} external_watchdog_debounce=${external_watchdog_debounce}"; fi
setenv bootargs "${bootrootfs} ${videoconfig} ${hdmi_phy_control} ${hid_quirks} smsc95xx.macaddr=${macaddr} ${external_watchdog}"
dmc ${ddr_freq}
bootz 0x40008000 0x42000000 0x44000000
Any reason why I couldn't modify it like this:

Code: Select all

ODROIDXU-UBOOT-CONFIG
#setenv initrd_high "0xffffffff"
setenv fdt_high "0xffffffff"
setenv macaddr "00:1e:06:61:7a:39"
setenv vout "hdmi"
setenv cecenable "false" # false or true
setenv disable_vu7 "false" # false
setenv ddr_freq 825
setenv external_watchdog "false"
setenv external_watchdog_debounce "3"
setenv HPD "true"
setenv bootrootfs "console=tty1 console=ttySAC2,115200n8 root=/dev/mmcblk1p3 rootwait ro fsck.repair=yes net.ifnames=0"
fatload mmc 0:1 0x40008000 zImage
#fatload mmc 0:1 0x42000000 uInitrd
setenv fdtloaded "false"
if test "x${board_name}" = "x"; then setenv board_name "xu4"; fi
if test "${board_name}" = "xu4"; then fatload mmc 0:1 0x44000000 exynos5422-odroidxu4.dtb; setenv fdtloaded "true"; fi
if test "${board_name}" = "xu3"; then fatload mmc 0:1 0x44000000 exynos5422-odroidxu3.dtb; setenv fdtloaded "true"; fi
if test "${board_name}" = "xu3l"; then fatload mmc 0:1 0x44000000 exynos5422-odroidxu3-lite.dtb; setenv fdtloaded "true"; fi
if test "${fdtloaded}" = "false"; then fatload mmc 0:1 0x44000000 exynos5422-odroidxu4.dtb; setenv fdtloaded "true"; fi
fdt addr 0x44000000
setenv hdmi_phy_control "HPD=${HPD} vout=${vout}"
if test "${cecenable}" = "false"; then fdt rm /soc/cec@101B0000; fi
if test "${disable_vu7}" = "false"; then setenv hid_quirks "usbhid.quirks=0x0eef:0x0005:0x0004"; fi
if test "${external_watchdog}" = "true"; then setenv external_watchdog "external_watchdog=${external_watchdog} external_watchdog_debounce=${external_watchdog_debounce}"; fi
setenv bootargs "${bootrootfs} ${videoconfig} ${hdmi_phy_control} ${hid_quirks} smsc95xx.macaddr=${macaddr} ${external_watchdog}"
dmc ${ddr_freq}
#bootz 0x40008000 0x42000000 0x44000000
bootz 0x40008000 0x44000000
When I do that I get zImage magic error, so I guess I don't understand the syntax of the bootz option and couldn't find any documentation anywhere on how it works.

Any help explaining how to omit initrd would be helpful.

Thanks,
schu

User avatar
igorpec
Posts: 471
Joined: Sat Dec 12, 2015 4:34 pm
languages_spoken: english,german,slovene
ODROIDs: XU4, HC1, C2, C1+
Has thanked: 18 times
Been thanked: 37 times
Contact:

Re: Boot.ini that omits initrd.

Unread post by igorpec » Wed Jan 29, 2020 8:54 am

This way:

Code: Select all

bootz 0x40008000 - 0x44000000
ARMBIAN - follow on Twitter
linux for ARM development boards with user friendly development tools

Post Reply

Return to “General Topics”

Who is online

Users browsing this forum: No registered users and 0 guests