[BPI-R2] How to build an Ubuntu/Debian SD image from scratch

Archlinux from which Manjaro is derived still supports armv7. There is no difference between them.

Yes I can use the Arch repos for package but the tools used to build manjaro doesnt support armv7 and also I just found out that they have removed armv7h arch from their repo.

I still have the old packages so I can make it work but compiling will take alot of time. instead I think I will divide it in kernel build and boot partition separate and then make a package with both and use in the the image builder.

To build a kernel I can use cross compiler on X86

If you not change kernel-config you can download binary package from github-releases build by travis-ci and only repack it

1 Like

Yes I think your right :smiley: I can use the Pre compiled one instead from your gdrive. And make a package with it.

On github there are the newest versions in releases-tab…after each push travis builds automaticly

1 Like

Hey, I got it and it looks like a ready to use Package. This is very helpful Now all I have to do it package it with the existing rootfs and try to boot it.

Thanks A lot.

@frank-w Lets continue here.

I built rootfs from the manjaro-arm-tools but it is mostly for arch packages using armv7h. Then I replaced the boot content with your latest kernel built of 4.19, also I removed the /lib from the rootfs as by default arch-latest-os-armv7h has it inside. then I copied the whole rootfs from your kernel built to the rootfs, then flashed the 1m img to the partition and tried to boot.

It boots with a kernel panic.

   Starting kernel ...                                                           
                                                                              
[    3.957610] console [ttyS0] enabled                                        
[    3.964591] bootconsole [earlycon0] disabled                               
[    3.994463] 11002000.serial: ttyS1 at MMIO 0x11002000 (irq = 202, base_bau2
[    4.024706] 11003000.serial: ttyS2 at MMIO 0x11003000 (irq = 203, base_bau2
[    4.034979] mtk_rng 1020f000.rng: registered RNG driver                    
[    4.035126] random: fast init done                                         
[    4.043776] mediatek-drm 14000000.dispsys: Adding component match for /ovl0
[    4.043819] random: crng init done                                         
[    4.051420] mediatek-drm 14000000.dispsys: Adding component match for /rdm0
[    4.062583] mediatek-drm 14000000.dispsys: Adding component match for /col0
[    4.070489] mediatek-drm 14000000.dispsys: Adding component match for /rdm0
[    4.078226] mediatek-drm 14000000.dispsys: Adding component match for /dpi0
[    4.087527] mediatek-hdmi-phy 10209100.phy: Using default TX DRV impedance6
[    4.097227] [drm] hdmi-audio-codec driver bound to HDMI                    
[    4.110908] loop: module loaded                                            
[    4.114302] [WMT-DETECT][I]wmt_detect_driver_init:driver(major 154) instals
[    4.122117] [SDIO-DETECT][I]sdio_detect_init:sdio_register_driver() ret=0  
[    4.129096] MTK-BTIF[E]hal_btif_clk_get_and_prepare(286):[CCF]clk_btif=b4fb
[    4.136402] MTK-BTIF[E]hal_btif_clk_get_and_prepare(292):[CCF]clk_btif_apd4
[    4.146166] mt6323-regulator mt6323-regulator: Chip ID = 0x2023            
[    4.160606] Uniform Multi-Platform E-IDE driver                            
[    4.165220] ide-gd driver 1.18                                             
[    4.168781] libphy: Fixed MDIO Bus: probed                                 
[    4.196065] libphy: mdio: probed                                           
[    4.199959] mtk_soc_eth 1b100000.ethernet: connected mac 0 to PHY at fixed]
[    4.210769] mtk_soc_eth 1b100000.ethernet eth0: mediatek frame engine at 08
[    4.219612] mtk_soc_eth 1b100000.ethernet: connected mac 1 to PHY at fixed]
[    4.230352] mtk_soc_eth 1b100000.ethernet eth1: mediatek frame engine at 08
[    4.239337] xhci-mtk 1a1c0000.usb: Linked as a consumer to regulator.3     
[    4.245928] xhci-mtk 1a1c0000.usb: Linked as a consumer to regulator.2     
[    4.252678] xhci-mtk 1a1c0000.usb: xHCI Host Controller                    
[    4.257924] xhci-mtk 1a1c0000.usb: new USB bus registered, assigned bus nu1
[    4.268778] xhci-mtk 1a1c0000.usb: hcc params 0x01401198 hci version 0x96 0
[    4.277861] xhci-mtk 1a1c0000.usb: irq 225, io mem 0x1a1c0000              
[    4.284593] hub 1-0:1.0: USB hub found                                     
[    4.288370] hub 1-0:1.0: 1 port detected                                   
[    4.292670] xhci-mtk 1a1c0000.usb: xHCI Host Controller                    
[    4.297907] xhci-mtk 1a1c0000.usb: new USB bus registered, assigned bus nu2
[    4.305284] xhci-mtk 1a1c0000.usb: Host supports USB 3.0 SuperSpeed        
[    4.311598] usb usb2: We don't know the algorithms for LPM for this host, .
[    4.320307] hub 2-0:1.0: USB hub found                                     
[    4.324094] hub 2-0:1.0: 1 port detected                                   
[    4.328546] xhci-mtk 1a240000.usb: Linked as a consumer to regulator.3     
[    4.335119] xhci-mtk 1a240000.usb: Linked as a consumer to regulator.2     
[    4.341849] xhci-mtk 1a240000.usb: xHCI Host Controller                    
[    4.347097] xhci-mtk 1a240000.usb: new USB bus registered, assigned bus nu3
[    4.357817] xhci-mtk 1a240000.usb: hcc params 0x01401198 hci version 0x96 0
[    4.366914] xhci-mtk 1a240000.usb: irq 226, io mem 0x1a240000              
[    4.373518] hub 3-0:1.0: USB hub found                                     
[    4.377331] hub 3-0:1.0: 1 port detected                                   
[    4.381615] xhci-mtk 1a240000.usb: xHCI Host Controller                    
[    4.386848] xhci-mtk 1a240000.usb: new USB bus registered, assigned bus nu4
[    4.394240] xhci-mtk 1a240000.usb: Host supports USB 3.0 SuperSpeed        
[    4.400650] usb usb4: We don't know the algorithms for LPM for this host, .
[    4.409346] hub 4-0:1.0: USB hub found                                     
[    4.413111] hub 4-0:1.0: 1 port detected                                   
[    4.417718] usbcore: registered new interface driver usb-storage           
[    4.424072] mousedev: PS/2 mouse device common for all mice                
[    4.430756] mt6397-rtc mt6323-rtc: registered as rtc0                      
[    4.437640] MTK_WDT_NONRST_REG(0)                                          
[    4.441747] mtk-wdt 10007000.watchdog: Watchdog enabled (timeout=31 sec, n)
[    4.451279] device-mapper: ioctl: 4.39.0-ioctl (2018-04-03) initialised: dm
[    4.460067] device-mapper: multipath round-robin: version 1.2.0 loaded     
[    4.466590] device-mapper: multipath queue-length: version 0.2.0 loaded    
[    4.473160] device-mapper: multipath service-time: version 0.3.0 loaded    
[    4.479812] device-mapper: raid: Loading target version 1.14.0             
[    4.486058] cpu cpu0: Linked as a consumer to regulator.4                  
[    4.491461] cpu cpu0: dummy supplies not allowed for exclusive requests    
[    4.499977] mtk-msdc 11240000.mmc: Got CD GPIO                             
[    4.504578] mtk-msdc 11240000.mmc: Linked as a consumer to regulator.2     
[    4.537544] mtk-msdc 11230000.mmc: Linked as a consumer to regulator.2     
[    4.544151] mtk-msdc 11230000.mmc: Linked as a consumer to regulator.1     
[    4.580397] hidraw: raw HID events driver (C) Jiri Kosina                  
[    4.585982] usbcore: registered new interface driver usbhid                
[    4.587382] mmc0: host does not support reading read-only switch, assuminge
[    4.591518] usbhid: USB HID core driver                                    
[    4.592618] mtk-iommu-v1 10205000.mmsys_iommu: bound 14010000.larb (ops mt)
[    4.604525] mmc0: new high speed SDHC card at address aaaa                 
[    4.612330] mtk-iommu-v1 10205000.mmsys_iommu: bound 16010000.larb (ops mt)
[    4.620179] mmcblk0: mmc0:aaaa SS16G 14.8 GiB                              
[    4.626798] mtk-iommu-v1 10205000.mmsys_iommu: bound 15001000.larb (ops mt)
[    4.635615]  mmcblk0: p1 p2                                                
[    4.644195] NET: Registered protocol family 17                             
[    4.646778] mmc1: new high speed MMC card at address 0001                  
[    4.654199] NET: Registered protocol family 41                             
[    4.656513] mmcblk1: mmc1:0001 8GTF4R 7.28 GiB                             
[    4.658814] 8021q: 802.1Q VLAN Support v1.8                                
[    4.665220] mmcblk1boot0: mmc1:0001 8GTF4R partition 1 4.00 MiB            
[    4.667801] ThumbEE CPU extension supported.                               
[    4.675260] mmcblk1boot1: mmc1:0001 8GTF4R partition 2 4.00 MiB            
[    4.677481] Registering SWP/SWPB emulation handler                         
[    4.683543] mmcblk1rpmb: mmc1:0001 8GTF4R partition 3 512 KiB, chardev (24)
[    4.695816] Loading compiled-in X.509 certificates                         
[    4.821138] mtk-pcie 1a140000.pcie: Port0 link down                        
[    4.856539] mtk-pcie 1a140000.pcie: PCI host bridge to bus 0000:00         
[    4.862692] pci_bus 0000:00: root bus resource [io  0x0000-0xffff] (bus ad)
[    4.872144] pci_bus 0000:00: root bus resource [mem 0x60000000-0x6fffffff] 
[    4.878996] pci_bus 0000:00: root bus resource [bus 00-ff]                 
[    4.884682] pci 0000:00:01.0: [14c3:0801] type 01 class 0x060400           
[    4.890684] pci 0000:00:01.0: reg 0x14: [mem 0x00000000-0x0000ffff]        
[    4.896997] pci 0000:00:01.0: supports D1                                  
[    4.900982] pci 0000:00:01.0: PME# supported from D0 D1 D3hot              
[    4.909666] PCI: bus0: Fast back to back transfers disabled                
[    4.915246] pci 0000:00:01.0: bridge configuration invalid ([bus 00-00]), g
[    4.923353] pci 0000:01:00.0: [1b21:0611] type 00 class 0x010185           
[    4.929373] pci 0000:01:00.0: reg 0x10: initial BAR value 0x00000000 invald
[    4.936394] pci 0000:01:00.0: reg 0x10: [io  size 0x0008]                  
[    4.941766] pci 0000:01:00.0: reg 0x14: initial BAR value 0x00000000 invald
[    4.948783] pci 0000:01:00.0: reg 0x14: [io  size 0x0004]                  
[    4.954169] pci 0000:01:00.0: reg 0x18: initial BAR value 0x00000000 invald
[    4.961170] pci 0000:01:00.0: reg 0x18: [io  size 0x0008]                  
[    4.966558] pci 0000:01:00.0: reg 0x1c: initial BAR value 0x00000000 invald
[    4.973559] pci 0000:01:00.0: reg 0x1c: [io  size 0x0004]                  
[    4.978944] pci 0000:01:00.0: reg 0x20: initial BAR value 0x00000000 invald
[    4.985961] pci 0000:01:00.0: reg 0x20: [io  size 0x0010]                  
[    4.991333] pci 0000:01:00.0: reg 0x24: [mem 0x00000000-0x000001ff]        
[    4.997581] pci 0000:01:00.0: reg 0x30: [mem 0x00000000-0x0000ffff pref]   
[    5.036457] PCI: bus1: Fast back to back transfers disabled                
[    5.042005] pci_bus 0000:01: busn_res: [bus 01-ff] end is updated to 01    
[    5.048645] pci 0000:00:01.0: BAR 8: assigned [mem 0x60000000-0x600fffff]  
[    5.055412] pci 0000:00:01.0: BAR 9: assigned [mem 0x60100000-0x601fffff p]
[    5.062592] pci 0000:00:01.0: BAR 1: assigned [mem 0x60200000-0x6020ffff]  
[    5.069356] pci 0000:00:01.0: BAR 7: assigned [io  0x1000-0x1fff]          
[    5.075434] pci 0000:01:00.0: BAR 6: assigned [mem 0x60100000-0x6010ffff p]
[    5.082613] pci 0000:01:00.0: BAR 5: assigned [mem 0x60000000-0x600001ff]  
[    5.089377] pci 0000:01:00.0: BAR 4: assigned [io  0x1000-0x100f]          
[    5.095452] pci 0000:01:00.0: BAR 0: assigned [io  0x1010-0x1017]          
[    5.101510] pci 0000:01:00.0: BAR 2: assigned [io  0x1018-0x101f]          
[    5.107583] pci 0000:01:00.0: BAR 1: assigned [io  0x1020-0x1023]          
[    5.113660] pci 0000:01:00.0: BAR 3: assigned [io  0x1024-0x1027]          
[    5.119719] pci 0000:00:01.0: PCI bridge to [bus 01]                       
[    5.124667] pci 0000:00:01.0:   bridge window [io  0x1000-0x1fff]          
[    5.130723] pci 0000:00:01.0:   bridge window [mem 0x60000000-0x600fffff]  
[    5.137483] pci 0000:00:01.0:   bridge window [mem 0x60100000-0x601fffff p]
[    5.144832] pcieport 0000:00:01.0: enabling device (0140 -> 0143)          
[    5.151065] pcieport 0000:00:01.0: Signaling PME with IRQ 223              
[    5.156989] pcieport 0000:00:01.0: AER enabled with IRQ 223                
[    5.162756] ahci 0000:01:00.0: version 3.0                                 
[    5.166868] ahci 0000:01:00.0: enabling device (0140 -> 0143)              
[    5.172686] ahci 0000:01:00.0: SSS flag set, parallel bus scan disabled    
[    5.179330] ahci 0000:01:00.0: AHCI 0001.0200 32 slots 2 ports 6 Gbps 0x3 e
[    5.187305] ahci 0000:01:00.0: flags: 64bit ncq sntf stag led clo pmp pio  
[    5.197327] scsi host0: ahci                                               
[    5.200858] scsi host1: ahci                                               
[    5.204078] ata1: SATA max UDMA/133 abar m512@0x60000000 port 0x60000100 i3
[    5.211434] ata2: SATA max UDMA/133 abar m512@0x60000000 port 0x60000180 i3
[    5.219220] mediatek-dpi 14014000.dpi: Found bridge node: /hdmi@14015000   
[    5.226201] mediatek-drm 14000000.dispsys: bound 14007000.ovl (ops mtk_dis)
[    5.234804] mediatek-drm 14000000.dispsys: bound 14008000.rdma (ops mtk_di)
[    5.243541] mediatek-drm 14000000.dispsys: bound 1400b000.color (ops mtk_d)
[    5.252466] mediatek-drm 14000000.dispsys: bound 14012000.rdma (ops mtk_di)
[    5.261236] mediatek-drm 14000000.dispsys: bound 14014000.dpi (ops mtk_dpi)
[    5.269479] [drm] Supports vblank timestamp caching Rev 2 (21.10.2013).    
[    5.276070] [drm] No driver support for vblank timestamp query.            
[    5.399590] Console: switching to colour frame buffer device 240x67        
[    5.439262] mediatek-drm 14000000.dispsys: fb0:  frame buffer device       
[    5.446245] [drm] Initialized mediatek 1.0.0 20150513 for 14000000.dispsys0
[    5.454786] mt6397-rtc mt6323-rtc: setting system clock to 2010-01-01 00:0)
[    5.463894] cfg80211: Loading compiled-in X.509 certificates for regulatore
[    5.474745] cfg80211: Loaded X.509 cert 'sforshee: 00b28ddf47aef9cea7'     
[    5.481842] vpa: disabling                                                 
[    5.484659] vusb: disabling                                                
[    5.487509] vmc: disabling                                                 
[    5.490268] vmch: disabling                                                
[    5.493115] vemc3v3: disabling                                             
[    5.496243] vgp1: disabling                                                
[    5.499113] vcamaf: disabling                                              
[    5.502164] ALSA device list:                                              
[    5.505194]   No soundcards found.                                         
[    5.509216] platform regulatory.0: Direct firmware load for regulatory.db 2
[    5.518014] cfg80211: failed to load regulatory.db                         
[    5.548396] ata1: SATA link down (SStatus 0 SControl 300)                  
[    5.885150] ata2: SATA link down (SStatus 0 SControl 300)                  
[    5.890763] md: Waiting for all devices to be available before autodetect  
[    5.897707] md: If you don't use raid, use raid=noautodetect               
[    5.904245] md: Autodetecting RAID arrays.                                 
[    5.908422] md: autorun ...                                                
[    5.911260] md: ... autorun DONE.                                          
[    5.926651] EXT4-fs (mmcblk0p2): mounted filesystem with ordered data mode)
[    5.935012] VFS: Mounted root (ext4 filesystem) readonly on device 179:2.  
[    5.951161] devtmpfs: mounted                                              
[    5.957434] Freeing unused kernel memory: 1024K                            
[    5.993904] Run /sbin/init as init process                                 
[    6.038683] Run /etc/init as init process                                  
[    6.043446] Run /bin/init as init process                                  
[    6.047783] Run /bin/sh as init process                                    
[    6.056225] Kernel panic - not syncing: No working init found.  Try passin.
[    6.070635] CPU: 2 PID: 1 Comm: swapper/0 Not tainted 4.19.72-bpi-r2-main 1
[    6.077795] Hardware name: Mediatek Cortex-A7 (Device Tree)                
[    6.083487] [<c01148c0>] (unwind_backtrace) from [<c010e564>] (show_stack+)
[    6.091365] [<c010e564>] (show_stack) from [<c0b6029c>] (dump_stack+0xbc/0)
[    6.098712] [<c0b6029c>] (dump_stack) from [<c0128478>] (panic+0x100/0x284)
[    6.113759] [<c0128478>] (panic) from [<c0b75b68>] (kernel_init+0x118/0x12)
[    6.128887] [<c0b75b68>] (kernel_init) from [<c01010e8>] (ret_from_fork+0x)
[    6.144606] Exception stack(0xde913fb0 to 0xde913ff8)                      
[    6.157816] 3fa0:                                     00000000 00000000 000
[    6.174287] 3fc0: 00000000 00000000 00000000 00000000 00000000 00000000 000
[    6.190755] 3fe0: 00000000 00000000 00000000 00000000 00000013 00000000    
[    6.205599] CPU3: stopping                                                 
[    6.216453] CPU: 3 PID: 0 Comm: swapper/3 Not tainted 4.19.72-bpi-r2-main 1
[    6.231682] Hardware name: Mediatek Cortex-A7 (Device Tree)                
[    6.245415] [<c01148c0>] (unwind_backtrace) from [<c010e564>] (show_stack+)
[    6.261441] [<c010e564>] (show_stack) from [<c0b6029c>] (dump_stack+0xbc/0)
[    6.277049] [<c0b6029c>] (dump_stack) from [<c01125f8>] (handle_IPI+0x3d0/)
[    6.292794] [<c01125f8>] (handle_IPI) from [<c01022a8>] (gic_handle_irq+0x)
[    6.308671] [<c01022a8>] (gic_handle_irq) from [<c0101a0c>] (__irq_svc+0x6)
[    6.324438] Exception stack(0xde94ff30 to 0xde94ff78)                      
[    6.337738] ff20:                                     00000000 00001094 df0
[    6.354229] ff40: ffffe000 c1204c70 c1204cb8 00000008 00000001 c12b60c3 c0c
[    6.370744] ff60: de94ff90 de94ff80 c010a750 c010a754 60000013 ffffffff    
[    6.385655] [<c0101a0c>] (__irq_svc) from [<c010a754>] (arch_cpu_idle+0x48)
[    6.401354] [<c010a754>] (arch_cpu_idle) from [<c0b7c1c0>] (default_idle_c)
[    6.417747] [<c0b7c1c0>] (default_idle_call) from [<c015cfe4>] (do_idle+0x)
[    6.433693] [<c015cfe4>] (do_idle) from [<c015d314>] (cpu_startup_entry+0x)
[    6.449519] [<c015d314>] (cpu_startup_entry) from [<c0111f5c>] (secondary_)
[    6.466851] [<c0111f5c>] (secondary_start_kernel) from [<8010270c>] (0x801)
[    6.482510] CPU1: stopping                                                 
[    6.493406] CPU: 1 PID: 0 Comm: swapper/1 Not tainted 4.19.72-bpi-r2-main 1
[    6.508675] Hardware name: Mediatek Cortex-A7 (Device Tree)                
[    6.522454] [<c01148c0>] (unwind_backtrace) from [<c010e564>] (show_stack+)
[    6.538469] [<c010e564>] (show_stack) from [<c0b6029c>] (dump_stack+0xbc/0)
[    6.553978] [<c0b6029c>] (dump_stack) from [<c01125f8>] (handle_IPI+0x3d0/)
[    6.569627] [<c01125f8>] (handle_IPI) from [<c01022a8>] (gic_handle_irq+0x)
[    6.585404] [<c01022a8>] (gic_handle_irq) from [<c0101a0c>] (__irq_svc+0x6)
[    6.601047] Exception stack(0xde94bf30 to 0xde94bf78)                      
[    6.614200] bf20:                                     00000000 000086ac df0
[    6.630563] bf40: ffffe000 c1204c70 c1204cb8 00000002 00000001 c12b60c3 c0c
[    6.646935] bf60: de94bf90 de94bf80 c010a750 c010a754 60000013 ffffffff    
[    6.661816] [<c0101a0c>] (__irq_svc) from [<c010a754>] (arch_cpu_idle+0x48)
[    6.677595] [<c010a754>] (arch_cpu_idle) from [<c0b7c1c0>] (default_idle_c)
[    6.694185] [<c0b7c1c0>] (default_idle_call) from [<c015cfe4>] (do_idle+0x)
[    6.710431] [<c015cfe4>] (do_idle) from [<c015d314>] (cpu_startup_entry+0x)
[    6.726670] [<c015d314>] (cpu_startup_entry) from [<c0111f5c>] (secondary_)
[    6.744525] [<c0111f5c>] (secondary_start_kernel) from [<8010270c>] (0x801)
[    6.760810] CPU0: stopping                                                 
[    6.772435] CPU: 0 PID: 0 Comm: swapper/0 Not tainted 4.19.72-bpi-r2-main 1
[    6.788423] Hardware name: Mediatek Cortex-A7 (Device Tree)                
[    6.802895] [<c01148c0>] (unwind_backtrace) from [<c010e564>] (show_stack+)
[    6.819622] [<c010e564>] (show_stack) from [<c0b6029c>] (dump_stack+0xbc/0)
[    6.835937] [<c0b6029c>] (dump_stack) from [<c01125f8>] (handle_IPI+0x3d0/)
[    6.852385] [<c01125f8>] (handle_IPI) from [<c01022a8>] (gic_handle_irq+0x)
[    6.868993] [<c01022a8>] (gic_handle_irq) from [<c0101a0c>] (__irq_svc+0x6)
[    6.885540] Exception stack(0xc1201ed8 to 0xc1201f20)                      
[    6.899702] 1ec0:                                                       000
[    6.917125] 1ee0: df599408 c01213a0 ffffe000 c1204c70 c1204cb8 00000001 003
[    6.934525] 1f00: c0e45f88 c1201f34 c1201f38 c1201f28 c010a750 c010a754 60f
[    6.951896] [<c0101a0c>] (__irq_svc) from [<c010a754>] (arch_cpu_idle+0x48)
[    6.968506] [<c010a754>] (arch_cpu_idle) from [<c0b7c1c0>] (default_idle_c)
[    6.985885] [<c0b7c1c0>] (default_idle_call) from [<c015cfe4>] (do_idle+0x)
[    7.002889] [<c015cfe4>] (do_idle) from [<c015d314>] (cpu_startup_entry+0x)
[    7.019864] [<c015d314>] (cpu_startup_entry) from [<c0b75a4c>] (rest_init+)
[    7.037124] [<c0b75a4c>] (rest_init) from [<c1100fec>] (start_kernel+0x474)
[    7.054208] ---[ end Kernel panic - not syncing: No working init found.  T-

Here is the full log as forum is not allowing full log.

So I guess I will have to compile the kernel myself?

Linux kernel looks for some files which it tries to call as init-process from your rootfs

  • /sbin/init
  • /etc/init
  • /bin/init
  • /bin/sh

In your rootfs all 4 are not present so you get kernel panic because init-prozess not available

Present

Not present

Also I checked for the permission and its this. Screenshot_20190925_133259

What can be the issue then?

Permissions of the link-target …/lib/system…? It’s only /bin/init…how about /bin/sh and /sbin/init (and their targets)?

Can you print filetype (file x)? So that we are sure it’s right arch

Found my mistake :x:

I removed /lib to replace it with the BPI-ROOT/lib and lost everything inside.

Booted fine. Now I will do the real work of getting all the services to work, groups, logins etc.

Thanks so much for your support. Here is the Boot log

Login Service is failing to start. Is this stopping me from loging in ? Like when I enter the correct login and password it returns with Authentication Failure.

Have you set password for root in chroot? If yes you should be able to login as root and look for login-service error

Yes tried passwordless, tried with password still authentication failure is the response. Also i see that login service is failing during initialization.

Discussing this with the arch and manjaro team. Should be a mistake from my end maybe but I see that there are other users reported the same for bpi device on archlinuxarm forum.

Have you tried this? https://bbs.archlinux.org/viewtopic.php?id=192053

1 Like

I will try this and report it back.

Nice read and some things got a lot more clear to me. While I can burn (for my M64) the boot image over the existing image using

 $ sudo gunzip -c ./SD/bpi-m64/100MB/BPI-M64-720P-linux4.4-8k.img | sudo dd of=/dev/sdc bs=1024 seek=8

I however wonder how to first perform a backup of that SD card section which I assume would look a bit like

 $ sudo dd if=/dev/sdc bs=1024 skip=8 of=./BOOTLOADER-backup.img

using skip instead of seek to affect the input stream. However I wouldn’t know how many bytes I actually have to copy…

Uhh… So,how to create openwrt SD image for bpi-r64,please help me, thx!

this thread is for debian/ubuntu and r2…please open separate thread,

as first information r64 is afaik supported with 4.19 only using phy-driver (don’t know if it is merged yet), dsa-driver is available for 5.4 first and imho openwrt uses only 4.14 and 4.19

i don’t know if there is a way in openwrt to build image for r64…i guess there are some patches needed to get basic support…wifi is maybe merged, but bluetooth i guess not

thx, i will try that