Skip to content

Amlogic notes

c0rnelius edited this page May 9, 2023 · 17 revisions
  • Odroid N2/+: Remove Petitboot
Add overlay to /boot/extlinux/extlinux.conf
fdtoverlays ../amlogic/overlays/odroidn2/meson-g12b-odroid-n2-spi.dtbo

Petitboot: select exit to shell and erase /dev/mtd{0,1,2,3}
flash_eraseall /dev/mtd0
flash_eraseall /dev/mtd1
flash_eraseall /dev/mtd2
flash_eraseall /dev/mtd3
reboot

odroid: ~  $ lsblk
NAME         MAJ:MIN RM   SIZE RO TYPE MOUNTPOINTS
mtdblock0     31:0    0     8M  0 disk

Flash u-boot to /dev/mtdblock0
sudo dd if=/lib/u-boot/u-boot.bin of=/dev/mtdblock0

Boot order: usb sd emmc
You may need to erase Android from; or flash mainline u-boot to; the eMMC before booting from SD.
I found using fastboot to be the quickest and easiest method when using Linux.

Put the device in maskrom mode and run lsusb to verify.

Bus 001 Device 048: ID 1b8e:c003 Amlogic, Inc. GX-CHIP

Run the following to flash mainline u-boot. When done. power down board, insert SD and power on.

sudo apt update; sudo apt install -y python3-pip fastboot
sudo pip3 install pyamlboot --upgrade
wget -cq https://github.com/pyavitz/debian-image-builder/raw/feature/files/boot/uboot/radxazero/fastboot-loader.bin
wget -cq https://github.com/pyavitz/debian-image-builder/raw/feature/files/boot/uboot/radxazero/u-boot.bin
sudo boot-g12.py fastboot-loader.bin
sudo fastboot flash 0x200 u-boot.bin
sudo fastboot reboot
  • Radxa Zero: LED Overlay Support (rev 1.5 is gpio 10)
fdtoverlays ../amlogic/overlays/meson-g12a-gpio-8-led.dtbo
fdtoverlays ../amlogic/overlays/meson-g12a-gpio-10-led.dtbo
Clone this wiki locally