* [9front] Help porting plan9front to Odroid n2+: booting SD card with ARM image
@ 2025-03-03 22:02 Marco Montevechi Filho
0 siblings, 0 replies; only message in thread
From: Marco Montevechi Filho @ 2025-03-03 22:02 UTC (permalink / raw)
To: 9front
[-- Attachment #1.1: Type: text/plain, Size: 1601 bytes --]
Hi all. I (an overall newbie in kernel and bootloader development) keep
trying to port plan9front to Odroid n2+ boards or at least get to a point
where it's obvious that I should give up. I'm stubborn for now.
I used the qcow2 file provided in the latest release
<https://9front.org/releases/2025/01/19/0/> (9front-10931.arm64.qcow2) to
generate an .img image:
qemu-img convert -f qcow2 -O raw 9front-10931.arm64.qcow2
9front-2025-arm64.img
And tried booting from it in an SD card. I attach the full boot log
captured from the UART terminal at this email, but I believe the most
important part is
[OSD]check dts: FDT_ERR_BADMAGIC, load default fb_addr parameters
[OSD]set initrd_high: 0x3d800000
[OSD]fb_addr for logo: 0x3d800000
[OSD]check dts: FDT_ERR_BADMAGIC, load default fb_addr parameters
[OSD]fb_addr for logo: 0x3d800000
[OSD]VPP_OFIFO_SIZE:0xfff01fff
[CANVAS]canvas init
[CANVAS]addr=0x3d800000 width=5760, height=2160
cvbs: outputmode[1080p60hz] is invalid
I then copied the /boot/amlogic/meson64_odroidn2_plus.dtb file from one
working odroid with ubuntu 22.04 provided by the manufacturer to my SD
card. In the U-boot terminal I tried:
load mmc 1:1 $fdt_addr_r meson64_odroidn2_plus.dtb
fdt addr $fdt_addr_r
And fdt print showed me the device tree. Now I tried run bootcmd. The
result is still not a normal boot and I don't know how to proceed. I append
the log here.
My first question is: am I starting with the right approach? Does it make
sense for me to make this boot work or am I doing something completely
stupid?
Any hints on how to proceed?
Thanks for your time,
Marco
[-- Attachment #1.2: Type: text/html, Size: 1738 bytes --]
[-- Attachment #2: first_boot_log_no_dtb.txt --]
[-- Type: text/plain, Size: 5427 bytes --]
SF: Detected XT25Q64 with page size 256 Bytes, erase size 4 KiB, total 8 MiB
SF: 7274496 bytes @ 0x110000 Read: OK
### CRAMFS load complete: 2156 bytes loaded to 0x10000000
## Executing script at 10000000
[OSD]check dts: FDT_ERR_BADMAGIC, load default fb_addr parameters
[OSD]set initrd_high: 0x3d800000
[OSD]fb_addr for logo: 0x3d800000
[OSD]check dts: FDT_ERR_BADMAGIC, load default fb_addr parameters
[OSD]fb_addr for logo: 0x3d800000
[OSD]VPP_OFIFO_SIZE:0xfff01fff
[CANVAS]canvas init
[CANVAS]addr=0x3d800000 width=5760, height=2160
cvbs: outputmode[1080p60hz] is invalid
vpp: vpp_matrix_update: 2
set hdmitx VIC = 16
config HPLL = 5940000 frac_rate = 1
HPLL: 0x3b3a04f7
HPLL: 0x1b3a04f7
HPLLv1: 0xdb3a04f7
config HPLL done
j = 6 vid_clk_div = 1
hdmitx phy setting done
hdmitx: set enc for VIC: 16
enc_vpu_bridge_reset[1319]
rx version is 2.0 div=10
edid extension block number : 2
edid extension block number : 2
Best resolution: 'custombuilt' (HDMI), IEEEOUI 0x000c03
reading petitboot.cfg
** Unable to read file petitboot.cfg **
### CRAMFS load complete: 41831 bytes loaded to 0x3000000
[OSD]check dts: FDT_ERR_BADMAGIC, load default fb_addr parameters
[OSD]fb_addr for logo: 0x3d800000
[OSD]check dts: FDT_ERR_BADMAGIC, load default fb_addr parameters
[OSD]fb_addr for logo: 0x3d800000
[OSD]VPP_OFIFO_SIZE:0xfff01000
[CANVAS]addr=0x3d800000 width=3840, height=1440
cvbs: outputmode[1024x768p60hz] is invalid
vpp: vpp_matrix_update: 2
set hdmitx VIC = 774
config HPLL = 2600000 frac_rate = 1
HPLL: 0xdb00046c
config HPLL done
j = 17 vid_clk_div = 2
hdmitx phy setting done
hdmitx: set enc for VIC: 774
enc_vpu_bridge_reset[1319]
rx version is 2.0 div=10
set hdmitx VIC = 774
config HPLL = 2600000 frac_rate = 1
HPLL: 0xdb00046c
config HPLL done
j = 17 vid_clk_div = 2
hdmitx phy setting done
hdmitx: set enc for VIC: 774
enc_vpu_bridge_reset[1319]
rx version is 2.0 div=10
[OSD]osd_hw.free_dst_data: 0,1023,0,767
### CRAMFS load complete: 3937382 bytes loaded to 0x2000000
### CRAMFS load complete: 3011728 bytes loaded to 0x3000000
### CRAMFS load complete: 71708 bytes loaded to 0x1000000
ee_gate_off ...
## Booting kernel from Legacy Image at 02000000 ...
Image Name:
Image Type: AArch64 Linux Kernel Image (gzip compressed)
Data Size: 3937318 Bytes = 3.8 MiB
Load Address: 01080000
Entry Point: 01080000
Verifying Checksum ... OK
## Loading init Ramdisk from Legacy Image at 03000000 ...
Image Name:
Image Type: AArch64 Linux RAMDisk Image (uncompressed)
Data Size: 3011664 Bytes = 2.9 MiB
Load Address: 00000000
Entry Point: 00000000
Verifying Checksum ... OK
active_slot is <NULL>
Unknown command 'store' - try 'help'
No dtbo patitions found
load dtb from 0x1000000 ......
## Flattened Device Tree blob at 01000000
Booting using the fdt blob at 0x1000000
No valid dtbo image found
Uncompressing Kernel Image ... OK
kernel loaded at 0x01080000, end = 0x019ec808
reserving fdt memory region: addr=1000000 size=12000
Loading Ramdisk to 3d520000, end 3d7ff450 ... OK
Loading Device Tree to 000000001ffeb000, end 000000001ffff81b ... OK
Starting kernel ...
uboot time: 183899025 us
7f800000 - 80000000, 8192 KB, linux,meson-fb
e5800000 - ed800000, 131072 KB, linux,ion-dev
e3000000 - e5800000, 40960 KB, linux,di_cma
e3000000 - e3000000, 0 KB, linux,ppmgr
cfc00000 - e3000000, 315392 KB, linux,codec_mm_cma
cfc00000 - cfc00000, 0 KB, linux,codec_mm_reserved
05000000 - 05400000, 4096 KB, linux,secmon
codec_mm_module_init
clkmsr ffd18004.meson_clk_msr: failed to get msr ring reg0
meson-pwm ff802000.pwm: pwm pinmux : can't get pinctrl
meson-pwm ffd1b000.pwm: pwm pinmux : can't get pinctrl
meson_cpufreq_init:don't find the node <dynamic_gp1_clk>
meson_cpufreq_init:don't find the node <dynamic_gp1_clk>
ff803000.serial: clock gate not found
meson-remote ff808040.rc: don't find the node <led_blink>
meson-remote ff808040.rc: don't find the node <led_blink_frq>
meson-fb meson-fb: create ion_client ffffffc09f2673c0, handle=ffffffc09f244d40
meson-fb meson-fb: ion memory(0): created fb at 0x00000000e5800000, size 75 MiB
di_get_vpu_clkb: get clk vpu error.
meson-mmc: >>>>>>>>hostbase ffffff800852b000, dmode
meson-mmc: >>>>>>>>hostbase ffffff8008534000, dmode
meson-mmc: emmc: resp_timeout,vstat:0xa10f2800,virqc:3fff
meson-mmc: emmc: err: wait for irq service, bus_fsm:0x8
meson-mmc: meson_mmc_irq_thread_v3() 653: set 1st retry!
meson-mmc: retry cmd 1 the 3-th time(s)
meson-mmc: emmc: resp_timeout,vstat:0x9d0f0800,virqc:3fff
meson-mmc: emmc: err: wait for desc write back, bus_fsm:0x7
meson-mmc: retry cmd 1 the 2-th time(s)
meson-mmc: emmc: resp_timeout,vstat:0x9d0f0800,virqc:3fff
meson-mmc: emmc: err: wait for desc write back, bus_fsm:0x7
meson-mmc: retry cmd 1 the 1-th time(s)
meson-mmc: emmc: resp_timeout,vstat:0xa10f2800,virqc:3fff
meson-mmc: emmc: err: wait for irq service, bus_fsm:0x8
meson-mmc: Command retried failed line:675, cmd:1
dwc_otg: usb0: type: 2 speed: 0, config: 0, dma: 0, id: 0, phy: ffe09000, ctrl: 0
dwc_otg: Core Release: 3.30a
dwc_otg: Setting default values for core params
dwc_otg: curmode: 0, host_only: 0
dwc_otg: Using Buffer DMA mode
dwc_otg: OTG VER PARAM: 1, OTG VER FLAG: 1
dwc_otg: Working on port type = SLAVE
dwc_otg: Dedicated Tx FIFOs mode
pm-meson aml_pm: Can't get switch_clk81
meson-mmc: card IN
/ # wake-on-lan = 00000000
wake-on-lan = 00000000
[-- Attachment #3: second_boot_with_dtb.txt --]
[-- Type: text/plain, Size: 6057 bytes --]
odroidn2#load mmc 1:1 $fdt_addr_r meson64_odroidn2_plus.dtb
card in
co-phase 0x2, tx-dly 0, clock 400000
co-phase 0x2, tx-dly 0, clock 400000
co-phase 0x2, tx-dly 0, clock 400000
co-phase 0x2, tx-dly 0, clock 400000
co-phase 0x2, tx-dly 0, clock 40000000
aml_sd_retry_refix[983]:delay = 0x0,gadjust =0x22000
[mmc_startup] mmc refix success
[mmc_init] mmc init success
reading meson64_odroidn2_plus.dtb
72644 bytes read in 9 ms (7.7 MiB/s)
odroidn2#fdt addr $fdt_addr_r
odroidn2#
odroidn2#
odroidn2#
odroidn2#
odroidn2#
odroidn2#
odroidn2#
odroidn2#
odroidn2#
odroidn2#
odroidn2#
odroidn2#run bootcmd
SF: Detected XT25Q64 with page size 256 Bytes, erase size 4 KiB, total 8 MiB
SF: 7274496 bytes @ 0x110000 Read: OK
### CRAMFS load complete: 2156 bytes loaded to 0x10000000
## Executing script at 10000000
[OSD]load fb addr from dts:/meson-fb
[OSD]set initrd_high: 0x7f800000
[OSD]fb_addr for logo: 0x7f800000
[OSD]load fb addr from dts:/meson-fb
[OSD]fb_addr for logo: 0x7f800000
[OSD]VPP_OFIFO_SIZE:0xfff01fff
[CANVAS]canvas init
[CANVAS]addr=0x7f800000 width=5760, height=2160
cvbs: outputmode[1080p60hz] is invalid
vpp: vpp_matrix_update: 2
set hdmitx VIC = 16
config HPLL = 5940000 frac_rate = 1
HPLL: 0x3b3a04f7
HPLL: 0x1b3a04f7
HPLLv1: 0xdb3a04f7
config HPLL done
j = 6 vid_clk_div = 1
hdmitx phy setting done
hdmitx: set enc for VIC: 16
enc_vpu_bridge_reset[1319]
rx version is 2.0 div=10
edid extension block number : 2
edid extension block number : 2
Best resolution: 'custombuilt' (HDMI), IEEEOUI 0x000c03
reading petitboot.cfg
** Unable to read file petitboot.cfg **
### CRAMFS load complete: 41831 bytes loaded to 0x3000000
[OSD]load fb addr from dts:/meson-fb
[OSD]fb_addr for logo: 0x7f800000
[OSD]load fb addr from dts:/meson-fb
[OSD]fb_addr for logo: 0x7f800000
[OSD]VPP_OFIFO_SIZE:0xfff01000
[CANVAS]addr=0x7f800000 width=3840, height=1440
cvbs: outputmode[1024x768p60hz] is invalid
vpp: vpp_matrix_update: 2
set hdmitx VIC = 774
config HPLL = 2600000 frac_rate = 1
HPLL: 0xdb00046c
config HPLL done
j = 17 vid_clk_div = 2
hdmitx phy setting done
hdmitx: set enc for VIC: 774
enc_vpu_bridge_reset[1319]
rx version is 2.0 div=10
set hdmitx VIC = 774
config HPLL = 2600000 frac_rate = 1
HPLL: 0xdb00046c
config HPLL done
j = 17 vid_clk_div = 2
hdmitx phy setting done
hdmitx: set enc for VIC: 774
enc_vpu_bridge_reset[1319]
rx version is 2.0 div=10
[OSD]osd_hw.free_dst_data: 0,1023,0,767
### CRAMFS load complete: 3937382 bytes loaded to 0x2000000
### CRAMFS load complete: 3011728 bytes loaded to 0x3000000
### CRAMFS load complete: 71708 bytes loaded to 0x1000000
ee_gate_off ...
## Booting kernel from Legacy Image at 02000000 ...
Image Name:
Image Type: AArch64 Linux Kernel Image (gzip compressed)
Data Size: 3937318 Bytes = 3.8 MiB
Load Address: 01080000
Entry Point: 01080000
Verifying Checksum ... OK
## Loading init Ramdisk from Legacy Image at 03000000 ...
Image Name:
Image Type: AArch64 Linux RAMDisk Image (uncompressed)
Data Size: 3011664 Bytes = 2.9 MiB
Load Address: 00000000
Entry Point: 00000000
Verifying Checksum ... OK
active_slot is <NULL>
Unknown command 'store' - try 'help'
No dtbo patitions found
load dtb from 0x1000000 ......
## Flattened Device Tree blob at 01000000
Booting using the fdt blob at 0x1000000
No valid dtbo image found
Uncompressing Kernel Image ... OK
kernel loaded at 0x01080000, end = 0x019ec808
reserving fdt memory region: addr=1000000 size=12000
Loading Ramdisk to 7f520000, end 7f7ff450 ... OK
Loading Device Tree to 000000001ffeb000, end 000000001ffff81b ... OK
Starting kernel ...
uboot time: 105167269 us
7f800000 - 80000000, 8192 KB, linux,meson-fb
e5800000 - ed800000, 131072 KB, linux,ion-dev
e3000000 - e5800000, 40960 KB, linux,di_cma
e3000000 - e3000000, 0 KB, linux,ppmgr
cfc00000 - e3000000, 315392 KB, linux,codec_mm_cma
cfc00000 - cfc00000, 0 KB, linux,codec_mm_reserved
05000000 - 05400000, 4096 KB, linux,secmon
codec_mm_module_init
clkmsr ffd18004.meson_clk_msr: failed to get msr ring reg0
meson-pwm ff802000.pwm: pwm pinmux : can't get pinctrl
meson-pwm ffd1b000.pwm: pwm pinmux : can't get pinctrl
meson_cpufreq_init:don't find the node <dynamic_gp1_clk>
meson_cpufreq_init:don't find the node <dynamic_gp1_clk>
ff803000.serial: clock gate not found
meson-remote ff808040.rc: don't find the node <led_blink>
meson-remote ff808040.rc: don't find the node <led_blink_frq>
meson-fb meson-fb: create ion_client ffffffc09e621540, handle=ffffffc09e626300
meson-fb meson-fb: ion memory(0): created fb at 0x00000000e5800000, size 75 MiB
di_get_vpu_clkb: get clk vpu error.
meson-mmc: >>>>>>>>hostbase ffffff800852b000, dmode
meson-mmc: >>>>>>>>hostbase ffffff8008534000, dmode
meson-mmc: emmc: resp_timeout,vstat:0xa10f2800,virqc:3fff
meson-mmc: emmc: err: wait for irq service, bus_fsm:0x8
meson-mmc: meson_mmc_irq_thread_v3() 653: set 1st retry!
meson-mmc: retry cmd 1 the 3-th time(s)
meson-mmc: emmc: resp_timeout,vstat:0x9d0f0800,virqc:3fff
meson-mmc: emmc: err: wait for desc write back, bus_fsm:0x7
meson-mmc: retry cmd 1 the 2-th time(s)
meson-mmc: emmc: resp_timeout,vstat:0x9d0f0800,virqc:3fff
meson-mmc: emmc: err: wait for desc write back, bus_fsm:0x7
meson-mmc: retry cmd 1 the 1-th time(s)
meson-mmc: emmc: resp_timeout,vstat:0x9d0f0800,virqc:3fff
meson-mmc: emmc: err: wait for desc write back, bus_fsm:0x7
meson-mmc: Command retried failed line:675, cmd:1
dwc_otg: usb0: type: 2 speed: 0, config: 0, dma: 0, id: 0, phy: ffe09000, ctrl: 0
dwc_otg: Core Release: 3.30a
dwc_otg: Setting default values for core params
dwc_otg: curmode: 0, host_only: 0
dwc_otg: Using Buffer DMA mode
dwc_otg: OTG VER PARAM: 1, OTG VER FLAG: 1
dwc_otg: Working on port type = SLAVE
dwc_otg: Dedicated Tx FIFOs mode
pm-meson aml_pm: Can't get switch_clk81
/ # wake-on-lan = 00000000
wake-on-lan = 00000000
/ # ls
bin init linuxrc opt run tmp
dev lib media proc sbin usr
etc lib64 mnt root sys var
/ #
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2025-03-03 22:06 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2025-03-03 22:02 [9front] Help porting plan9front to Odroid n2+: booting SD card with ARM image Marco Montevechi Filho
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).