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

Bug#884779: installation-reports: [armv7l] HOWTO get Banana M2 Ultra running



Package: installation-reports
Severity: normal
Tags: upstream patch

Dear Maintainer,

more a status report for others trying to get debian on that ~50EUR devices running:
u-boot build on a Banana Pro (stretch):

$ make Bananapi_M2_Ultra_defconfig
$ make -j 2

U-Boot 2017.11-rc2 (Oct 20 2017 - 22:21:57 +0200) Allwinner Technology

CPU:   Allwinner R40 (SUN8I 1701)
Model: Banana Pi BPI-M2-Ultra
I2C:   ready
DRAM:  2 GiB
MMC:   SUNXI SD/MMC: 0, SUNXI SD/MMC: 1

linux-next build on itself (initially on Banana Pro, stretch):
patches (adapted from patchwork.kernel.og) and configs on
https://bitbucket.org/hlauer/kernel/src

r40-sata.patchl
r40-gmac.patchl
r40-usb.patchl
v2-4-5-ARM-sun8i-r40-enable-USB-host-for-Banana-Pi-M2-Ultra.patch
configs/4.15-arm

Linux version 4.15.0-rc3-next-20171212 (hlauer@bapro) (gcc version 6.3.0 20170516 (Debian 6.3.0-18)) #1 SMP Wed Dec 13 00:30:26 CET 2017

Thanks,
 greetings
  Hermann

-- Package-specific info:

Boot method: not used
Image version: stretch installed system (9.3)
Date: <Date and time of the install>

Machine: Banana-Pi-M2-Ultra
Partitions: <df -Tl will do; the raw partition table is preferred>


Base System Installation Checklist:
[O] = OK, [E] = Error (please elaborate below), [ ] = didn't try it

Initial boot:           [E]
Detect network card:    [ ]
Configure network:      [ ]
Detect CD:              [ ]
Load installer modules: [ ]
Clock/timezone setup:   [ ]
User/password setup:    [ ]
Detect hard drives:     [ ]
Partition hard drives:  [ ]
Install base system:    [ ]
Install tasks:          [ ]
Install boot loader:    [ ]
Overall install:        [ ]

Comments/Problems:

At the moment u-boot has no ethernet/usb support, so only mmc and sata would work.
Kernel has following caveeats:
probably u-boot setup of SATA registers needed:
 scsi scan
 setenv bootargs console=ttyS0,115200 earlyprintk root=/dev/sda1 rootfstype=ext4 elevator=deadline rootwait
 ext4load scsi 0:1 0x49000000 /boot/ultra12.dtb
 ext4load scsi 0:1 0x46000000 /boot/vmlinuz-4.15.0-rc3-next-20171212
 bootz 0x46000000 - 0x49000000

Internal ethernet is not working as I couldn't find a devicetree entry
(search patchwork for "r40" to get a status overview),
so using an usb-ethernet Adapter to write this report.

-- 

Please make sure that the hardware-summary log file, and any other
installation logs that you think would be useful are attached to this
report. Please compress large files using gzip.

Once you have filled out this report, mail it to submit@bugs.debian.org.

==============================================
Installer lsb-release:
==============================================
DISTRIB_ID=Debian
DISTRIB_DESCRIPTION="Debian GNU/Linux installer"
DISTRIB_RELEASE="9 (stretch) - installer build 20170407"
X_INSTALLATION_MEDIUM=netboot (on Banana Pro)

==============================================
Installer hardware-summary (from Banana Pro):
==============================================
uname -a: Linux banana 4.9.0-2-armmp #1 SMP Debian 4.9.18-1 (2017-03-30) armv7l GNU/Linux
lsmod: Module                  Size  Used by
lsmod: dm_mod                103345  0
lsmod: md_mod                120554  0
lsmod: jfs                   174500  0
lsmod: btrfs                1144412  0
lsmod: xor                     4718  1 btrfs
lsmod: zlib_deflate           20290  1 btrfs
lsmod: raid6_pq               87373  1 btrfs
lsmod: vfat                   10313  0
lsmod: fat                    57205  1 vfat
lsmod: ext4                  551118  1
lsmod: crc16                   1274  1 ext4
lsmod: jbd2                   94046  1 ext4
lsmod: crc32c_generic          1862  3
lsmod: fscrypto               15747  1 ext4
lsmod: ecb                     2191  0
lsmod: mbcache                 5508  2 ext4
lsmod: usb_storage            45771  0
lsmod: sd_mod                 32731  3
lsmod: ahci_sunxi              2915  2
lsmod: libahci_platform        6494  1 ahci_sunxi
lsmod: libahci                23377  2 ahci_sunxi,libahci_platform
lsmod: libata                192873  3 ahci_sunxi,libahci_platform,libahci
lsmod: scsi_mod              187963  3 sd_mod,usb_storage,libata
lsmod: realtek                 2775  0
lsmod: dwmac_sunxi             2431  0
lsmod: sunxi                   8845  0
lsmod: ohci_platform           4786  0
lsmod: phy_generic             4686  1 sunxi
lsmod: stmmac_platform         4942  1 dwmac_sunxi
lsmod: stmmac                 97824  3 stmmac_platform,dwmac_sunxi
lsmod: musb_hdrc             113261  1 sunxi
lsmod: ehci_platform           5462  0
lsmod: ohci_hcd               37898  1 ohci_platform
lsmod: udc_core               26444  1 musb_hdrc
lsmod: ehci_hcd               64996  1 ehci_platform
lsmod: phy_sun4i_usb           8637  1 sunxi
lsmod: usbcore               195888  6 usb_storage,ehci_hcd,musb_hdrc,ohci_hcd,ehci_platform,ohci_platform
lsmod: extcon_core            13223  2 sunxi,phy_sun4i_usb
lsmod: usb_common              3659  5 udc_core,sunxi,musb_hdrc,phy_sun4i_usb,usbcore
lsmod: sunxi_mmc              12421  0
lsmod: leds_gpio               3390  0
df: Filesystem           1K-blocks      Used Available Use% Mounted on
df: none                    102512        40    102472   0% /run
df: devtmpfs                493444         0    493444   0% /dev
df: /dev/sda1             61255492    701540  57412628   1% /target
df: /dev/sda1             61255492    701540  57412628   1% /dev/.static/dev
df: devtmpfs                493444         0    493444   0% /target/dev
free:              total         used         free       shared      buffers
free: Mem:       1025120       781876       243244        95052        82952
free: -/+ buffers:             698924       326196
free: Swap:     15650812            0     15650812
/proc/cmdline: 
/proc/cpuinfo: processor	: 0
/proc/cpuinfo: model name	: ARMv7 Processor rev 4 (v7l)
/proc/cpuinfo: BogoMIPS	: 48.00
/proc/cpuinfo: Features	: half thumb fastmult vfp edsp thumbee neon vfpv3 tls vfpv4 idiva idivt vfpd32 lpae evtstrm 
/proc/cpuinfo: CPU implementer	: 0x41
/proc/cpuinfo: CPU architecture: 7
/proc/cpuinfo: CPU variant	: 0x0
/proc/cpuinfo: CPU part	: 0xc07
/proc/cpuinfo: CPU revision	: 4
/proc/cpuinfo: 
/proc/cpuinfo: processor	: 1
/proc/cpuinfo: model name	: ARMv7 Processor rev 4 (v7l)
/proc/cpuinfo: BogoMIPS	: 48.00
/proc/cpuinfo: Features	: half thumb fastmult vfp edsp thumbee neon vfpv3 tls vfpv4 idiva idivt vfpd32 lpae evtstrm 
/proc/cpuinfo: CPU implementer	: 0x41
/proc/cpuinfo: CPU architecture: 7
/proc/cpuinfo: CPU variant	: 0x0
/proc/cpuinfo: CPU part	: 0xc07
/proc/cpuinfo: CPU revision	: 4
/proc/cpuinfo: 
/proc/cpuinfo: Hardware	: Allwinner sun7i (A20) Family
/proc/cpuinfo: Revision	: 0000
/proc/cpuinfo: Serial		: 16516618048181b0
/proc/device-tree/model: LeMaker Banana Pi/proc/iomem: 00000000-0000bfff : 0.sram
/proc/iomem: 00010000-00010fff : 10000.sram
/proc/iomem: 01c00000-01c0002f : /soc@01c00000/sram-controller@01c00000
/proc/iomem: 01c00030-01c0003b : /soc@01c00000/interrupt-controller@01c00030
/proc/iomem: 01c02000-01c02fff : /soc@01c00000/dma-controller@01c02000
/proc/iomem: 01c0f000-01c0ffff : /soc@01c00000/mmc@01c0f000
/proc/iomem: 01c18000-01c18fff : /soc@01c00000/sata@01c18000
/proc/iomem: 01c20008-01c2000f : /clocks/clk@01c20008
/proc/iomem: 01c20010-01c20013 : /clocks/clk@01c20010
/proc/iomem: 01c20030-01c20033 : /clocks/clk@01c20030
/proc/iomem: 01c20060-01c20067 : /clocks/clk@01c20060
/proc/iomem: 01c20068-01c2006b : /clocks/clk@01c20068
/proc/iomem: 01c2006c-01c2006f : /clocks/clk@01c2006c
/proc/iomem: 01c20088-01c2008b : /clocks/clk@01c20088
/proc/iomem: 01c2008c-01c2008f : /clocks/clk@01c2008c
/proc/iomem: 01c20090-01c20093 : /clocks/clk@01c20090
/proc/iomem: 01c20094-01c20097 : /clocks/clk@01c20094
/proc/iomem: 01c200b8-01c200bb : /clocks/clk@01c200b8
/proc/iomem: 01c200bc-01c200bf : /clocks/clk@01c200bc
/proc/iomem: 01c200c0-01c200c3 : /clocks/clk@01c200c0
/proc/iomem: 01c200cc-01c200cf : /clocks/clk@01c200cc
/proc/iomem: 01c200d8-01c200db : /clocks/clk@01c200d8
/proc/iomem: 01c200dc-01c200df : /clocks/clk@01c200dc
/proc/iomem: 01c20100-01c20103 : /clocks/clk@01c20100
/proc/iomem: 01c20104-01c20107 : /clocks/clk@01c20104
/proc/iomem: 01c20108-01c2010b : /clocks/clk@01c20108
/proc/iomem: 01c2010c-01c2010f : /clocks/clk@01c2010c
/proc/iomem: 01c20110-01c20113 : /clocks/clk@01c20110
/proc/iomem: 01c20118-01c2011b : /clocks/clk@01c20118
/proc/iomem: 01c2011c-01c2011f : /clocks/clk@01c2011c
/proc/iomem: 01c2012c-01c2012f : /clocks/clk@01c2012c
/proc/iomem: 01c20130-01c20133 : /clocks/clk@01c20130
/proc/iomem: 01c2013c-01c2013f : /clocks/clk@01c2013c
/proc/iomem: 01c20140-01c20143 : /clocks/clk@01c20140
/proc/iomem: 01c20800-01c20bff : /soc@01c00000/pinctrl@01c20800
/proc/iomem: 01c20d00-01c20d1f : /soc@01c00000/rtc@01c20d00
/proc/iomem: 01c28000-01c2801f : serial
/proc/iomem: 01c28c00-01c28c1f : serial
/proc/iomem: 01c29c00-01c29c1f : serial
/proc/iomem: 01c50000-01c5ffff : /soc@01c00000/ethernet@01c50000
/proc/iomem: 01c60000-01c60fff : /soc@01c00000/hstimer@01c60000
/proc/iomem: 40000000-7fe69fff : System RAM
/proc/iomem:   40008000-40afffff : Kernel code
/proc/iomem:   40c00000-40d42dc3 : Kernel data
/proc/interrupts:            CPU0       CPU1       
/proc/interrupts:  18:          0          0     GIC-0  29 Level     arch_timer
/proc/interrupts:  19:     276855     174848     GIC-0  30 Level     arch_timer
/proc/interrupts:  22:          0          0     GIC-0  54 Level     sun4i_timer0
/proc/interrupts:  23:          0          0     GIC-0 113 Level     sun5i_timer0
/proc/interrupts:  26:          0          0     GIC-0  59 Level     1c02000.dma-controller
/proc/interrupts:  28:        291          0     GIC-0  64 Level     sunxi-mmc
/proc/interrupts:  33:      72102          0     GIC-0  88 Level     ahci-sunxi[1c18000.sata]
/proc/interrupts:  38:          1          0     GIC-0  56 Level     1c20d00.rtc
/proc/interrupts:  45:       8721          0     GIC-0  33 Level     serial
/proc/interrupts:  50:     118884          0     GIC-0 117 Level     eth0
/proc/interrupts:  64:          0          0  sunxi_pio_edge  10 Edge      1c0f000.mmc cd
/proc/interrupts: IPI0:          0          0  CPU wakeup interrupts
/proc/interrupts: IPI1:          0          0  Timer broadcast interrupts
/proc/interrupts: IPI2:     125635     147869  Rescheduling interrupts
/proc/interrupts: IPI3:         22      20523  Function call interrupts
/proc/interrupts: IPI4:          0          0  CPU stop interrupts
/proc/interrupts: IPI5:          1          0  IRQ work interrupts
/proc/interrupts: IPI6:          0          0  completion interrupts
/proc/interrupts: Err:          0
/proc/meminfo: MemTotal:        1025120 kB
/proc/meminfo: MemFree:          243076 kB
/proc/meminfo: MemAvailable:     862128 kB
/proc/meminfo: Buffers:           82952 kB
/proc/meminfo: Cached:           601608 kB
/proc/meminfo: SwapCached:            0 kB
/proc/meminfo: Active:           245860 kB
/proc/meminfo: Inactive:         456972 kB
/proc/meminfo: Active(anon):      13596 kB
/proc/meminfo: Inactive(anon):    99724 kB
/proc/meminfo: Active(file):     232264 kB
/proc/meminfo: Inactive(file):   357248 kB
/proc/meminfo: Unevictable:           0 kB
/proc/meminfo: Mlocked:               0 kB
/proc/meminfo: HighTotal:        260520 kB
/proc/meminfo: HighFree:          73584 kB
/proc/meminfo: LowTotal:         764600 kB
/proc/meminfo: LowFree:          169492 kB
/proc/meminfo: SwapTotal:      15650812 kB
/proc/meminfo: SwapFree:       15650812 kB
/proc/meminfo: Dirty:               496 kB
/proc/meminfo: Writeback:             0 kB
/proc/meminfo: AnonPages:         18232 kB
/proc/meminfo: Mapped:             3228 kB
/proc/meminfo: Shmem:             95052 kB
/proc/meminfo: Slab:              60184 kB
/proc/meminfo: SReclaimable:      53024 kB
/proc/meminfo: SUnreclaim:         7160 kB
/proc/meminfo: KernelStack:         728 kB
/proc/meminfo: PageTables:          484 kB
/proc/meminfo: NFS_Unstable:          0 kB
/proc/meminfo: Bounce:                0 kB
/proc/meminfo: WritebackTmp:          0 kB
/proc/meminfo: CommitLimit:    16163372 kB
/proc/meminfo: Committed_AS:     118616 kB
/proc/meminfo: VmallocTotal:     245760 kB
/proc/meminfo: VmallocUsed:           0 kB
/proc/meminfo: VmallocChunk:          0 kB
/proc/meminfo: CmaTotal:          16384 kB
/proc/meminfo: CmaFree:            1332 kB

-- System Information:
Debian Release: 9.3
  APT prefers stable
  APT policy: (500, 'stable'), (50, 'unstable')
Architecture: armhf (armv7l)

Kernel: Linux 4.15.0-rc3-next-20171212 (SMP w/4 CPU cores)
Locale: LANG=C.UTF-8, LC_CTYPE=C.UTF-8 (charmap=UTF-8), LANGUAGE=C.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)


Reply to: