Skip to content

Instantly share code, notes, and snippets.

@ljfranklin
Last active September 20, 2020 16:18
Show Gist options
  • Save ljfranklin/7ae0109b7850effbbb77dc0064d07074 to your computer and use it in GitHub Desktop.
Save ljfranklin/7ae0109b7850effbbb77dc0064d07074 to your computer and use it in GitHub Desktop.
U-boot ODroid iPXE setup
# Start ethernet
usb start
# U-Boot Parameters
setenv initrd_high "0xffffffff"
setenv fdt_high "0xffffffff"
# Mac address configuration
setenv macaddr "00:1e:06:61:7a:39"
setenv hdmi_phy_control "HPD=true vout=hdmi"
# Disable ODROID-VU7 Touchsreen
setenv hid_quirks "usbhid.quirks=0x0eef:0x0005:0x0004"
setenv bootrootfs "earlycon console=tty1 console=ttySAC2,115200n8 root=UUID=8407cf58-654f-4139-a299-d2f950aac69d rootwait ro fsck.repair=yes net.ifnames=0"
setenv bootargs "${bootrootfs} ${videoconfig} ${hdmi_phy_control} ${hid_quirks} smsc95xx.macaddr=${macaddr}"
fatload mmc 2:1 0x40008000 snp.efi
fatload mmc 2:1 0x44000000 exynos5422-odroidxu3.dtb
fdt addr 0x44000000
# Disable HDMI CEC
fdt rm /soc/cec@101B0000
# Boot the board
bootefi 0x40008000 0x44000000
# compile u-boot
make CROSS_COMPILE=arm-linux-gnueabihf- odroid-xu3_defconfig
make CROSS_COMPILE=arm-linux-gnueabihf-
# flash u-boot to SD card
# Download these files:
# https://github.com/hardkernel/u-boot/tree/odroidxu4-v2017.05/sd_fuse
cp ~/u-boot/u-boot-dtb.bin .
./sd_fusing.sh /sda/sda
cd /<sd-card-boot-mount>
cp ~/u-boot/arch/arm/dts/exynos5422-odroidxu3.dtb .
cp ~/ipxe/src/bin-arm32-efi/snp.efi .
# write boot.txt shown below to boot.txt
mkimage -A arm -T script -C none -d boot.txt boot.scr
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment