Current-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: Hints for Bananapi and -current



Thanks - that got me beyond screen initialization.

but

bootm 82000000 - $fdt_addr_r root=ld0a console=fb

asked for the root device, swap, fs tape and init - so the parameters probably did not reach the kernel at all.

starting X didn't show anything on the 4K screen, X seemed to be running though.

I am also not sure whether the Bananapi HDMI can do the u-boot determined 3940x2160 resolution. I have yet to play around with hdmi configuration.

The dmesg output is attached.

Adding a usb keyboard uncovered a panic while awaiting root device input:

[ 3.4159917] ehci1: handing over low speed device on port 1 to companion controller
[   3.6660050] boot device: <unknown>
[ 3.6660050] root device: uhidev0 at uhub3 port 1 configuration 1 interface 0 [ 5.0672791] uhidev0: DaKai (0xe8f) 2.4G RX (0xa8), rev 1.10/3.11, addr 2, iclass 3/1
[   5.1663953] ukbd0 at uhidev0: 8 Variable keys, 6 Array codes

[ 5.3375655] This port is broken, it does not call cnpollc() before calling cngetc().
[   5.4375739] This should be fixed, but it will work anyway (for now).
[   5.6775820] wskbd0 at ukbd0: console keyboard, using wsdisplay0
[   5.7732545] uhidev1 at uhub3 port 1 configuration 1 interface 1
[ 5.8694170] uhidev1: DaKai (0xe8f) 2.4G RX (0xa8), rev 1.10/3.11, addr 2, iclass 3/1
[   5.9727975] panic: usbd_transfer: not done
[   6.0611224] cpu0: Begin traceback...
[   6.1478907] 0x9c695b84: netbsd:db_panic+0x14
[   6.2380975] 0x9c695b9c: netbsd:vpanic+0x194
[   6.3276372] 0x9c695bb4: netbsd:snprintf
[   6.4161552] 0x9c695bf4: netbsd:usbd_sync_transfer
[   6.5075330] 0x9c695c34: netbsd:usbd_do_request_flags+0xa4
[   6.6012676] 0x9c695c4c: netbsd:usbd_do_request+0x20
[   6.6932964] 0x9c695c7c: netbsd:usbd_set_idle+0x70
[   6.7838060] 0x9c695d54: netbsd:uhidev_attach+0xdc
[   6.8737881] 0x9c695d8c: netbsd:config_attach_loc+0x1b4
[   6.9701440] 0x9c695dbc: netbsd:config_found_sm_loc+0x54
[   7.0606941] 0x9c695e5c: netbsd:usbd_attachinterfaces+0x1b0
[   7.1525235] 0x9c695e8c: netbsd:usbd_probe_and_attach+0x84
[   7.2413633] 0x9c695ef4: netbsd:usbd_new_device+0x254
[   7.3280048] 0x9c695f5c: netbsd:uhub_explore+0x2dc
[   7.4155137] 0x9c695f84: netbsd:usb_discover.isra.2+0x74
[   7.5044602] 0x9c695fac: netbsd:usb_event_thread+0x84
[   7.5926830] cpu0: End traceback...
Stopped in pid 0.59 (system) at netbsd:cpu_Debugger+0x4: bx      r14

Any ideas ?

Frank

On 05/01/19 18:40, Jared McNeill wrote:
Remove the following devices from your kernel config and the kernel should use simplefb instead: sunxidebe, sunxitcon, sunxihdmi, sunxidep

I just peeked at the code quickly and it looks like the DE drivers are blindly using the display's advertised preferred mode without taking its own capabilities into consideration.


On Wed, 1 May 2019, Frank Kardel wrote:

I tried -current with my Bananapi an had limited success:

Using the first steps copying the image armv7 and the 2018.05 u-boot I found the u-boot load attempting to perform a dhcp boot as nothing was found on the mmc drive in autoboot. Did I miss somethnig to set up there ?

I finally got a kernel to start booting with following chants:

mmc dev 0

fatload mmc 0:1 $fdt_addr_r $fdtfile

fatload mmc 0:1 82000000 netbsd-GENERIC.ub

bootm 82000000 - $fdt_addr_r root=ld0a console=fb/none

The output always stops at:

[ 1.0000000] NetBSD 8.99.37 (GENERIC) #2: Sun Apr 28 10:09:56 CEST 2019 [ 1.0000000] kardel@Andromeda:/src/NetBSD/cur/src/obj.evbarm/sys/arch/evbarm/compile/GENERIC
[   1.0000000] total memory = 1022 MB
[   1.0000000] avail memory = 1012 MB
[   1.0000000] armfdt0 (root)
[   1.0000000] simplebus0 at armfdt0: LeMaker Banana Pi
[   1.0000000] simplebus1 at simplebus0
[   1.0000000] cpus0 at simplebus0
[   1.0000000] simplebus2 at simplebus0
[   1.0000000] simplebus3 at simplebus0
[   1.0000000] cpu0 at cpus0: Cortex-A7 r0p4 (Cortex V7A core)
[ 1.0000000] cpu0: DC enabled IC enabled WB enabled LABT branch prediction enabled
[   1.0000000] cpu0: 32KB/32B 2-way L1 VIPT Instruction cache
[ 1.0000000] cpu0: 32KB/64B 4-way write-back-locking-C L1 PIPT Data cache
[   1.0000000] cpu0: 256KB/64B 8-way write-through L2 PIPT Unified cache
[ 1.0000000] vfp0 at cpu0: NEON MPE (VFP 3.0+), rounding, NaN propagation, denormals
[   1.0000000] cpufreqdt0 at cpu0
[   1.0000000] cpu1 at cpus0
[   1.0000000] cpufreqdt1 at cpu1
[   1.0000000] gic0 at simplebus1: GIC
[ 1.0000000] armgic0 at gic0: Generic Interrupt Controller, 160 sources (150 valid)
[   1.0000000] armgic0: 16 Priorities, 128 SPIs, 7 PPIs, 15 SGIs
[ 1.0000000] fclock0 at simplebus2: 25000000 Hz fixed clock (mii_phy_tx) [ 1.0000000] fclock1 at simplebus2: 125000000 Hz fixed clock (gmac_int_tx)
[   1.0000000] fclock2 at simplebus2: 24000000 Hz fixed clock (osc24M)
[   1.0000000] fclock3 at simplebus2: 32768 Hz fixed clock (osc32k)
[   1.0000000] gtmr0 at simplebus0: Generic Timer
[   1.0000000] gtmr0: interrupting on GIC irq 27
[   1.0000000] armgtmr0 at gtmr0: ARM Generic Timer (24000 kHz)
[   1.0000420] sun4ia10ccu0 at simplebus1: A20 CCU
[   1.0000420] sunxinmi0 at simplebus1: NMI
[   1.0000420] sunxigmacclk0 at simplebus2: GMAC MII/RGMII clock mux
[   1.0000420] sunxigpio0 at simplebus1: PIO
[   1.0000420] gpio0 at sunxigpio0: 175 pins
[   1.0000420] sunxigpio0: interrupting on GIC irq 60
[   1.0000420] sunxisramc0 at simplebus1: SRAM Controller
[ 1.0000420] sunxidebe0 at simplebus1: Display Engine Backend (display-backend@1e60000) [ 1.0000420] sunxidebe1 at simplebus1: Display Engine Backend (display-backend@1e40000)

So in summary I seem to get up to video initialization. For my 4K TV I had to increase the MAX_FB reserved memory to 32M but that didn't help, also not connecting any HDMI device didn't help.

The u-boot bootm command was change to manage ramdisk images thus the tips on our web site don't apply to the new bootm syntax.

Any other things I can try or that I overlooked?

Frank





U-Boot SPL 2018.05 (May 01 2019 - 12:53:59 +0200)
DRAM: 1024 MiB
CPU: 912000000Hz, AXI/AHB/APB: 3/2/2
Trying to boot from MMC1


U-Boot 2018.05 (May 01 2019 - 12:53:59 +0200) Allwinner Technology

CPU:   Allwinner A20 (SUN7I)
Model: LeMaker Banana Pi
I2C:   ready
DRAM:  1 GiB
MMC:   SUNXI SD/MMC: 0
Loading Environment from FAT... *** Warning - bad CRC, using default environment

Failed (-5)
HDMI connected: Setting up a 3840x2160 hdmi console (overscan 0x0)
In:    serial
Out:   vga
Err:   vga
SCSI:  SATA link 0 timeout.
AHCI 0001.0100 32 slots 1 ports 3 Gbps 0x1 impl SATA mode
flags: ncq stag pm led clo only pmp pio slum part ccc apst
Net:   eth0: ethernet@01c50000
starting USB...
USB0:   USB EHCI 1.00
USB1:   USB OHCI 1.0
USB2:   USB EHCI 1.00
USB3:   USB OHCI 1.0
scanning bus 0 for devices... 1 USB Device(s) found
scanning bus 2 for devices... 1 USB Device(s) found
       scanning usb for storage devices... 0 Storage Device(s) found
Hit any key to stop autoboot:  0
=> mmc dev 0
switch to partitions #0, OK
mmc0 is current device
=> fatload mmc 0:1 $fdt_addr_r $fdtfile
44723 bytes read in 9 ms (4.7 MiB/s)
=> fatload mmc 0:1 82000000 netbsd-BPI.ub
9245716 bytes read in 651 ms (13.5 MiB/s)
=> bootm 82000000 - $fdt_addr_r root=ld0a
## Booting kernel from Legacy Image at 82000000 ...
   Image Name:   NetBSD/earmv7hf 8.99.37
   Image Type:   ARM Linux Kernel Image (no loading done) (uncompressed)
   Data Size:    9245652 Bytes = 8.8 MiB
   Load Address: 00000000
   Entry Point:  00000000
   Verifying Checksum ... OK
## Flattened Device Tree blob at 43000000
   Booting using the fdt blob at 0x43000000
   XIP Kernel Image (no loading done) ... OK
   Loading Device Tree to 49ff2000, end 49fffeb2 ... OK

Starting kernel ...

[   1.0000000] NetBSD/evbarm (fdt) booting ...
[   1.0000000] [ Kernel symbol table missing! ]
[   1.0000000] Copyright (c) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005,
[   1.0000000]     2006, 2007, 2008, 2009, 2010, 2011, 2012, 2013, 2014, 2015, 2016, 2017,
[   1.0000000]     2018, 2019 The NetBSD Foundation, Inc.  All rights reserved.
[   1.0000000] Copyright (c) 1982, 1986, 1989, 1991, 1993
[   1.0000000]     The Regents of the University of California.  All rights reserved.

[   1.0000000] NetBSD 8.99.37 (BPI) #0: Wed May  1 20:28:26 CEST 2019
[   1.0000000]  kardel@Andromeda:/src/NetBSD/cur/src/obj.evbarm/sys/arch/evbarm/compile/BPI
[   1.0000000] total memory = 992 MB
[   1.0000000] avail memory = 982 MB
[   1.0000000] armfdt0 (root)
[   1.0000000] simplebus0 at armfdt0: LeMaker Banana Pi
[   1.0000000] simplebus1 at simplebus0
[   1.0000000] cpus0 at simplebus0
[   1.0000000] simplebus2 at simplebus0
[   1.0000000] simplebus3 at simplebus0
[   1.0000000] cpu0 at cpus0: Cortex-A7 r0p4 (Cortex V7A core)
[   1.0000000] cpu0: DC enabled IC enabled WB enabled LABT branch prediction enabled
[   1.0000000] cpu0: 32KB/32B 2-way L1 VIPT Instruction cache
[   1.0000000] cpu0: 32KB/64B 4-way write-back-locking-C L1 PIPT Data cache
[   1.0000000] cpu0: 256KB/64B 8-way write-through L2 PIPT Unified cache
[   1.0000000] vfp0 at cpu0: NEON MPE (VFP 3.0+), rounding, NaN propagation, denormals
[   1.0000000] cpufreqdt0 at cpu0
[   1.0000000] cpu1 at cpus0
[   1.0000000] cpufreqdt1 at cpu1
[   1.0000000] gic0 at simplebus1: GIC
[   1.0000000] armgic0 at gic0: Generic Interrupt Controller, 160 sources (150 valid)
[   1.0000000] armgic0: 16 Priorities, 128 SPIs, 7 PPIs, 15 SGIs
[   1.0000000] fclock0 at simplebus2: 25000000 Hz fixed clock (mii_phy_tx)
[   1.0000000] fclock1 at simplebus2: 125000000 Hz fixed clock (gmac_int_tx)
[   1.0000000] fclock2 at simplebus2: 24000000 Hz fixed clock (osc24M)
[   1.0000000] fclock3 at simplebus2: 32768 Hz fixed clock (osc32k)
[   1.0000000] gtmr0 at simplebus0: Generic Timer
[   1.0000000] gtmr0: interrupting on GIC irq 27
[   1.0000000] armgtmr0 at gtmr0: ARM Generic Timer (24000 kHz)
[   1.0000600] sun4ia10ccu0 at simplebus1: A20 CCU
[   1.0000600] sunxinmi0 at simplebus1: NMI
[   1.0000600] sunxigmacclk0 at simplebus2: GMAC MII/RGMII clock mux
[   1.0000600] sunxigpio0 at simplebus1: PIO
[   1.0000600] gpio0 at sunxigpio0: 175 pins
[   1.0000600] sunxigpio0: interrupting on GIC irq 60
[   1.0000600] sunxisramc0 at simplebus1: SRAM Controller
[   1.0000600] connector0 at simplebus0: HDMI connector
[   1.0000600] sunxisid0 at simplebus1: Security ID EFUSE
[   1.0000600] fregulator0 at simplebus0: vcc3v3
[   1.0000600] fregulator1 at simplebus0: usb0-vbus
[   1.0000600] fregulator2 at simplebus0: usb1-vbus
[   1.0000600] fregulator3 at simplebus0: usb2-vbus
[   1.0000600] fregulator4 at simplebus0: gmac-3v3
[   1.0000600] fregulator5 at simplebus0: vcc3v0
[   1.0000600] fregulator6 at simplebus0: vcc5v0
[   1.0000600] sunxiusbphy0 at simplebus1: USB PHY
[   1.0000600] sunxitwi0 at simplebus1: Marvell TWSI controller
[   1.0000600] sunxitwi0: interrupting on GIC irq 39
[   1.0000600] iic0 at sunxitwi0: I2C bus
[   1.0000600] axp20x0 at iic0 addr 0x34
[   1.0000600] axp20xreg0 at axp20x0: dcdc2 (vdd-cpu)
[   1.0000600] axp20xreg1 at axp20x0: dcdc3 (vdd-int-dll)
[   1.0000600] sunxits0 at simplebus1: Touch Screen Controller
[   1.0000600] sunxits0: interrupting on GIC irq 61
[   1.0000600] /soc@1c00000/display-frontend@1e00000 at simplebus1 not configured
[   1.0000600] /soc@1c00000/display-frontend@1e20000 at simplebus1 not configured
[   1.0000600] sun4idma0 at simplebus1: DMA controller
[   1.0000600] sun4idma0: interrupting on GIC irq 59
[   1.0000600] /soc@1c00000/display-backend@1e60000 at simplebus1 not configured
[   1.0000600] /soc@1c00000/display-backend@1e40000 at simplebus1 not configured
[   1.0000600] /soc@1c00000/hdmi@1c16000 at simplebus1 not configured
[   1.0000600] /soc@1c00000/lcd-controller@1c0c000 at simplebus1 not configured
[   1.0000600] /soc@1c00000/lcd-controller@1c0d000 at simplebus1 not configured
[   1.0000600] awge0 at simplebus1: GMAC
[   1.0000600] awge0: interrupting on GIC irq 117
[   1.0000600] awge0: Core version: 00000000
[   1.0000600] awge0: Ethernet address xx:xx:xx:xx:xx:xx
[   1.0000600] rgephy0 at awge0 phy 0: RTL8211E 1000BASE-T media interface
[   1.0000600] rgephy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, 1000baseT, 1000baseT-FDX, auto
[   1.0000600] rgephy1 at awge0 phy 1: RTL8211E 1000BASE-T media interface
[   1.0000600] rgephy1: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, 1000baseT, 1000baseT-FDX, auto
[   1.0000600] /display-engine at simplebus0 not configured
[   1.0000600] /soc@1c00000/spi@1c05000 at simplebus1 not configured
[   1.0000600] sunximmc0 at simplebus1: SD/MMC controller
[   1.0000600] sunximmc0: interrupting on GIC irq 64
[   1.0000600] motg0 at simplebus1: 'otg' mode not supported
[   1.0000600] ehci0 at simplebus1: EHCI
[   1.0000600] ehci0: interrupting on GIC irq 71
[   1.0000600] ehci0: 1 companion controller, 1 port
[   1.0000600] usb0 at ehci0: USB revision 2.0
[   1.0000600] ohci0 at simplebus1: OHCI
[   1.0000600] ohci0: interrupting on GIC irq 96
[   1.0000600] ohci0: OHCI version 1.0
[   1.0000600] usb1 at ohci0: USB revision 1.0
[   1.0000600] /soc@1c00000/crypto-engine@1c15000 at simplebus1 not configured
[   1.0000600] ahcisata0 at simplebus1: SATA
[   1.0000600] ahcisata0: interrupting on GIC irq 88
[   1.0000600] ahcisata0: AHCI revision 1.10, 1 port, 32 slots, CAP 0x6f24ff80<CCCS,PSC,SSC,PMD,SAM,ISS=0x2=Gen2,SCLO,SAL,SALP,SSS,SSNTF,SNCQ>
[   1.0000600] atabus0 at ahcisata0 channel 0
[   1.0000600] ehci1 at simplebus1: EHCI
[   1.0000600] ehci1: interrupting on GIC irq 72
[   1.0000600] ehci1: 1 companion controller, 1 port
[   1.0000600] usb2 at ehci1: USB revision 2.0
[   1.0000600] ohci1 at simplebus1: OHCI
[   1.0000600] ohci1: interrupting on GIC irq 97
[   1.0000600] ohci1: OHCI version 1.0
[   1.0000600] usb3 at ohci1: USB revision 1.0
[   1.0000600] sunxiwdt0 at simplebus1: Watchdog
[   1.0000600] sunxiwdt0: default watchdog period is 16 seconds
[   1.0000600] sunxirtc0 at simplebus1: RTC
[   1.0000600] /soc@1c00000/ir@1c21800 at simplebus1 not configured
[   1.0000600] sunxicodec0 at simplebus1: A10 Audio Codec
[   1.0000600] audio0 at sunxicodec0: full duplex, playback, capture, mmap, independent
[   1.0000600] sunxicodec0: Virtual format configured - Format SLINEAR, precision 16, channels 2, frequency 48000
[   1.0000600] sunxicodec0: Latency: 256 milliseconds
[   1.0000600] spkr0 at audio0: PC Speaker (synthesized)
[   1.0000600] wsbell at spkr0 not configured
[   1.0000600] com0 at simplebus1: ns16550a, working fifo
[   1.0000600] com0: console
[   1.0000600] com0: interrupting on GIC irq 33
[   1.0000600] com1 at simplebus1: ns16550a, working fifo
[   1.0000600] com1: interrupting on GIC irq 36
[   1.0000600] com2 at simplebus1: ns16550a, working fifo
[   1.0000600] com2: interrupting on GIC irq 52
[   1.0000600] sunxitwi1 at simplebus1: Marvell TWSI controller
[   1.0000600] sunxitwi1: interrupting on GIC irq 41
[   1.0000600] iic1 at sunxitwi1: I2C bus
[   1.0000600] /soc@1c00000/gpu@1c40000 at simplebus1 not configured
[   1.0000600] psci0 at simplebus0: PSCI 0.1
[   1.0000600] armpmu0 at simplebus0: Performance Monitor Unit
[   1.0000600] gpioleds0 at simplebus0: bananapi:green:usr
[   1.0000600] /soc@1c00000/video-codec@1c0e000 at simplebus1 not configured
[   1.0000600] sunxitimer0 at simplebus1: Timer
[   1.0000600] /soc@1c00000/hstimer@1c60000 at simplebus1 not configured
[   1.0000600] genfb0 at simplebus3: Simple Framebuffer (3840x2160 32-bpp @ 0x7e05c000)
[   1.0000600] wsdisplay0 at genfb0 kbdmux 1: console (default, vt100 emulation)
[   1.0000600] cpu1: Cortex-A7 r0p4 (Cortex V7A core)
[   1.1962142] cpu1: DC enabled IC enabled WB enabled LABT branch prediction enabled
[   1.2862229] cpu1: 32KB/32B 2-way L1 VIPT Instruction cache
[   1.3762298] cpu1: 32KB/64B 4-way write-back-locking-C L1 PIPT Data cache
[   1.4662363] cpu1: 256KB/64B 8-way write-through L2 PIPT Unified cache
[   1.5462467] vfp1 at cpu1: NEON MPE (VFP 3.0+), rounding, NaN propagation, denormals
[   1.6462506] sdmmc0 at sunximmc0
[   2.2262876] uhub0 at usb0: NetBSD (0000) EHCI root hub (0000), class 9/0, rev 2.00/1.00, addr 1
[   2.2462941] armpmu0: interrupting on GIC irq 152
[   2.2462941] armpmu0: interrupting on GIC irq 153
[   2.3162988] uhub1 at usb2: NetBSD (0000) EHCI root hub (0000), class 9/0, rev 2.00/1.00, addr 1
[   2.3263017] uhub2 at usb1: NetBSD (0000) OHCI root hub (0000), class 9/0, rev 1.00/1.00, addr 1
[   2.3363027] uhub3 at usb3: NetBSD (0000) OHCI root hub (0000), class 9/0, rev 1.00/1.00, addr 1
[   2.4363142] sdmmc0: SD card status: 4-bit, C10, U1
[   2.4363142] ld0 at sdmmc0: <0x27:0x5048:SD16G:0x30:0xda677156:0x102>
[   2.4487669] ld0: 14804 MB, 7519 cyl, 64 head, 63 sec, 512 bytes/sect x 30318592 sectors
[   2.4563161] ld0: 4-bit width, High-Speed/SDR25, 50.000 MHz
[   3.4763508] boot device: <unknown>
[   3.5463635] root device: ld0a
[   5.3896957] dump device (default ld0b):
[   6.2366269] file system (default generic):
[   6.9873620]  dumps on ld0b
[   6.9973610] root file system type: ffs
[   7.0073623] kern.module.path=/stand/evbarm/8.99.37/modules
[   7.5873976] init path (default /sbin/init):
[   8.4973515] init: trying /sbin/init
Wed May  1 19:37:45 UTC 2019


Home | Main Index | Thread Index | Old Index