SDXC
March 18, 2023, 12:40pm
1
Hi sorry for my english , thanks Frank for Debian
System:
Kernel: 5.10.64-bpi-r2-main armv7l bits: 32 compiler: gcc v: 10.2.1
Console: tty 0 Distro: Debian GNU/Linux 11 (bullseye)
Machine:
Type: ARM Device System: Bananapi BPI-R2 details: Mediatek Cortex-A7
Partition:
ID-1: / size: 28.86 GiB used: 12.79 GiB (44.3%) fs: ext4
dev: /dev/mmcblk0p2
ID-2: /boot size: 255.7 MiB used: 31.5 MiB (12.3%) fs: vfat
dev: /dev/mmcblk0p1
I built kernel 5.15
adam@Z51:~/BPI-Router-Linux$ ./build.sh
Build Kernel
Cleanup Kernel Build
depency-check currently only on debian/ubuntu...
generate branch vars...
getting git branch:
* 5.15-main
kernbranch:5.15-main,gitbranch:-main
CALL scripts/atomic/check-atomics.sh
CALL scripts/checksyscalls.sh
CHK include/generated/compile.h
CHK kernel/kheaders_data.tar.xz
Kernel: arch/arm/boot/Image is ready
OBJCOPY arch/arm/boot/zImage
Kernel: arch/arm/boot/zImage is ready
Image Name: Linux Kernel 5.15.94-main
Created: Sat Mar 18 11:06:40 2023
Image Type: ARM Linux Kernel Image (uncompressed)
Data Size: 7855785 Bytes = 7671.67 KiB = 7.49 MiB
Load Address: 80008000
Entry Point: 80008000
build uImage without appended DTB...
Image Name: Linux Kernel 5.15.94-main
Created: Sat Mar 18 11:07:29 2023
Image Type: ARM Linux Kernel Image (uncompressed)
Data Size: 7819776 Bytes = 7636.50 KiB = 7.46 MiB
Load Address: 80008000
Entry Point: 80008000
===========================================
1) pack
2) install to SD-Card
3) deb-package
4) upload
does not start
8446344 uImage
dtb/
8411480 uImage_nodt
8234828 uImage_5.10.64-main
27 uEnv.txt
7855849 uImage_5.15.94-main
5 file(s), 3 dir(s)
enter uImage-name: uImage_5.15.94-main
kernelinput=uImage_5.15.94-main
./
../
44505 bpi-r2.dtb
36009 bpi-r2_5.15.dtb
2 file(s), 2 dir(s)
enter dtb-name: bpi-r2_5.15.dtb
dtbinput= bpi-r2_5.15.dtb
bootargs=board=bpi-r2 earlyprintk console=ttyS0,115200 root=/dev/mmcblk0p2 rootfstype=ext4 rootwait vmalloc=496M debug=7 initcall_debug=0 video=1920x1080 console=tty1 fbcon=map:0 drm.debug=0x7
loading kernel uImage_5.15.94-main...
7855849 bytes read in 393 ms (19.1 MiB/s)
fdt=bpi-r2_5.15.dtb
36009 bytes read in 7 ms (4.9 MiB/s)
## Error: "dtolist" not defined
## Booting kernel from Legacy Image at 80200000 ...
Image Name: Linux Kernel 5.15.94-main
Image Type: ARM Linux Kernel Image (uncompressed)
Data Size: 7855785 Bytes = 7.5 MiB
Load Address: 80008000
Entry Point: 80008000
Verifying Checksum ... OK
## Flattened Device Tree blob at 83f00000
Booting using the fdt blob at 0x83f00000
Loading Kernel Image
Using Device Tree in place at 83f00000, end 83f0bca8
Starting kernel ...
still nothing reboot bootmenu ,
where is the problem ???
frank-w
(Frank W.)
March 18, 2023, 12:47pm
2
you have installed the uImage with dtb or without? the combined uImage has to be loaded without the extra dtb (leave question empty)
SDXC
March 18, 2023, 12:54pm
3
pack
install to SD-Card
deb-package
upload
I copied by hand option 1)
and option 2
./
../
8446344 uImage
dtb/
8411480 uImage_nodt
8234828 uImage_5.10.64-main
27 uEnv.txt
7855849 uImage_5.15.94-main
5 file(s), 3 dir(s)
enter uImage-name: uImage_5.15.94-main
kernelinput=uImage_5.15.94-main
./
../
44505 bpi-r2.dtb
36009 bpi-r2_5.15.dtb
2 file(s), 2 dir(s)
enter dtb-name:
## Error: "dtbinput" not defined
bootargs=board=bpi-r2 earlyprintk console=ttyS0,115200 root=/dev/mmcblk0p2 rootfstype=ext4 rootwait vmalloc=496M debug=7 initcall_debug=0 video=1920x1080 console=tty1 fbcon=map:0 drm.debug=0x7
loading kernel uImage_5.15.94-main...
7855849 bytes read in 393 ms (19.1 MiB/s)
## Error: "fdt" not defined
## Booting kernel from Legacy Image at 80200000 ...
Image Name: Linux Kernel 5.15.94-main
Image Type: ARM Linux Kernel Image (uncompressed)
Data Size: 7855785 Bytes = 7.5 MiB
Load Address: 80008000
Entry Point: 80008000
Verifying Checksum ... OK
Loading Kernel Image
Starting kernel ...
frank-w
(Frank W.)
March 18, 2023, 1:02pm
4
install asks for installing uImage with dtb (default) or separate, pack has both kernel files and dtb (=3 files)
so either you use uImage_nodt and dtb or only uImage (leave dtb empty)
install also shows what to add to uEnv.txt (kernel=…) for automatic boot
please select your output and then press the </> button…this indents the output by 4 spaces and makes it better readable
tried booting the uImage (with dtb) by leaving dtb-question empty…same output as yours and boots
SDXC
March 18, 2023, 1:39pm
6
./
../
7855849 uImage
dtb/
7819840 uImage_nodt
8234828 uImage_5.10.64-main >>> OK
27 uEnv.txt
7855849 uImage_5.15.94-main >>> does not start
../
7855849 uImage
dtb/
7819840 uImage_nodt
8234828 uImage_5.10.64-main
27 uEnv.txt
7855849 uImage_5.15.94-main
5 file(s), 3 dir(s)
enter uImage-name: uImage_nodt
kernelinput= uImage_nodt
./
../
44505 bpi-r2.dtb
36009 bpi-r2_5.15.dtb
2 file(s), 2 dir(s)
enter dtb-name:
## Error: "dtbinput" not defined
bootargs=board=bpi-r2 earlyprintk console=ttyS0,115200 root=/dev/mmcblk0p2 rootfstype=ext4 rootwait vmalloc=496M debug=7 initcall_debug=0 video=1920x1080 console=tty1 fbcon=map:0 drm.debug=0x7
loading kernel uImage_nodt...
7819840 bytes read in 387 ms (19.3 MiB/s)
## Error: "fdt" not defined
## Booting kernel from Legacy Image at 80200000 ...
Image Name: Linux Kernel 5.15.94-main
Image Type: ARM Linux Kernel Image (uncompressed)
Data Size: 7819776 Bytes = 7.5 MiB
Load Address: 80008000
Entry Point: 80008000
Verifying Checksum ... OK
Loading Kernel Image
Starting kernel ...
compilation requires special options ?
frank-w
(Frank W.)
March 18, 2023, 1:42pm
7
if you have it compiled with my build.sh (like it looks for me) it should work…if you do manual install you may miss any step
please use the </> button to format your output the right way (select the text and press the button)…you can use preview function to verify before sending
SDXC
March 18, 2023, 1:50pm
8
ok
bpi-r2 5.10.64-bpi-r2-main problem USB octoprint
SDXC
March 18, 2023, 1:59pm
9
adam@Z51:~$ gcc -v
Using built-in specs.
COLLECT_GCC=gcc
COLLECT_LTO_WRAPPER=/usr/local/libexec/gcc/x86_64-pc-linux-gnu/11.1.0/lto-wrapper
Target: x86_64-pc-linux-gnu
Configured with: ../configure
Thread model: posix
Supported LTO compression algorithms: zlib
gcc version 11.1.0 (GCC)
version maybe a problem?
Frank you are sharing the kernel 5.15
frank-w
(Frank W.)
March 18, 2023, 3:25pm
10
Possible that gcc version has problem,you could try use gcc 10 or files from github releases
SDXC
March 18, 2023, 5:06pm
11
make[1]: Leaving directory '/home/adam/build'
Image Name: Linux Kernel 6.1.12-main
Created: Sat Mar 18 17:02:36 2023
Image Type: ARM Linux Kernel Image (uncompressed)
Data Size: 8624603 Bytes = 8422.46 KiB = 8.23 MiB
Load Address: 80008000
Entry Point: 80008000
build uImage without appended DTB...
Image Name: Linux Kernel 6.1.12-main
Created: Sat Mar 18 17:02:47 2023
Image Type: ARM Linux Kernel Image (uncompressed)
Data Size: 8590328 Bytes = 8388.99 KiB = 8.19 MiB
Load Address: 80008000
Entry Point: 80008000
===========================================
1) pack
2) install to SD-Card
3) deb-package
4) upload
now it is working
root@bpi-r2:~# neofetch
_,met$$$$$gg. root@bpi-r2
,g$$$$$$$$$$$$$$$P. -----------
,g$$P" """Y$$.". OS: Debian GNU/Linux 11 (bullseye) armv7l
,$$P' `$$$. Host: Bananapi BPI-R2
',$$P ,ggs. `$$b: Kernel: 6.1.12-bpi-r2-main
`d$$' ,$P"' . $$$ Uptime: 5 mins
$$P d$' , $$P Packages: 1220 (dpkg)
$$: $$. - ,d$$' Shell: bash 5.1.4
$$; Y$b._ _,d$P' Terminal: /dev/ttyS0
Y$$. `.`"Y$$$$P"' CPU: Mediatek Cortex-A7 (Device Tree) (4) @ 1.300GHz
`$$b "-.__ Memory: 322MiB / 2010MiB
`Y$$ CPU Usage: 26%
`Y$$. Disk (/): 13G / 29G (47%)
`$$b. Local IP: 192.168.1.132
`Y$$b.
`"Y$b._
`"""
octoprint
root@bpi-r2:~# [ 242.991478] usb 3-1: new full-speed USB device number 2 using xhci-mtk
[ 243.177866] mediatek-disp-rdma 14012000.rdma: deferred probe timeout, ignoring dependency
[ 243.186519] mediatek-disp-rdma 14012000.rdma: Failed to add component: -517
[ 243.220013] usbcore: registered new interface driver ch341
[ 243.225786] usbserial: USB Serial support registered for ch341-uart
[ 243.232325] ch341 3-1:1.0: ch341-uart converter detected
[ 243.239171] usb 3-1: ch341-uart converter now attached to ttyUSB0
$ /home/pi/.local/bin/./octoprint
Starting the server via "octoprint" is deprecated, please use "octoprint serve" from now on.
2023-03-18 17:34:35,855 - octoprint.startup - INFO - ******************************************************************************
2023-03-18 17:34:35,861 - octoprint.startup - INFO - Starting OctoPrint 1.8.6
2023-03-18 17:34:35,861 - octoprint.startup - INFO - ******************************************************************************
2023-03-18 17:34:37,015 - octoprint.util.connectivity.connectivity_checker - INFO - Connectivity state is currently: online
2023-03-18 17:34:37,016 - octoprint.util.connectivity.connectivity_checker - INFO - Connecting to 1.1.1.1:53 is working
2023-03-18 17:34:37,016 - octoprint.util.connectivity.connectivity_checker - INFO - Resolving octoprint.org is working
2023-03-18 17:34:37,471 - octoprint.startup - INFO - Blacklist processing done, adding 3 blacklisted plugin versions: roomtemp (any), GcodeEditor (>=0.1.1,<=0.2.8), gcodeleveling (>=0.1.0,<=0.1.1)
2023-03-18 17:34:37,653 - octoprint.plugin.core - INFO - Loading plugins from /home/pi/.local/lib/python3.9/site-packages/octoprint/plugins, /home/pi/.octoprint/plugins and installed plugin packages...
2023-03-18 17:34:45,605 - octoprint.plugin.core - INFO - Plugin Pi Support Plugin (2022.6.13) did not pass check, not loading.
2023-03-18 17:34:46,001 - octoprint.plugin.core - INFO - Found 19 plugin(s) providing 19 mixin implementations, 38 hook handlers
2023-03-18 17:34:46,150 - octoprint.server.heartbeat - INFO - Starting server heartbeat, 900.0s interval
2023-03-18 17:34:46,507 - octoprint.server - INFO - Intermediary server started
thank you Frank
SDXC
March 18, 2023, 5:31pm
13
no 11 is ok , there are still a few problems but you did a great job
frank-w
(Frank W.)
March 18, 2023, 5:47pm
14
why was it not booting?
ah, i see you switched to 6.1…is 5.15 currently broken (maybe it can be fixed with updating point-release)?
6.1. does not support internal wifi from r2
SDXC
March 18, 2023, 5:59pm
15
i know i read your github
Network:
Device-1: Qualcomm Atheros QCA986x/988x 802.11ac Wireless Network Adapter
driver: ath10k_pci v: kernel bus ID: 01:00.0
frank-w
(Frank W.)
March 18, 2023, 6:03pm
16
tried 5.15.94 (current version from my github) and works for me
Linux bpi-r2 5.15.94-bpi-r2-main #2 SMP Sat Mar 18 18:41:10 CET 2023 armv7l
but currently i use this gcc (10):
$ arm-linux-gnueabihf-gcc -v
Using built-in specs.
COLLECT_GCC=arm-linux-gnueabihf-gcc
COLLECT_LTO_WRAPPER=/usr/lib/gcc-cross/arm-linux-gnueabihf/10/lto-wrapper
Target: arm-linux-gnueabihf
Configured with: ../src/configure -v --with-pkgversion='Ubuntu 10.4.0-4ubuntu1~22.04' --with-bugurl=file:///usr/share/doc/gcc-10/README.Bugs --enable-languages=c,ada,c++,go,d,fortran,objc,obj-c++,m2 --prefix=/usr --with-gcc-major-version-only --program-suffix=-10 --enable-shared --enable-linker-build-id --libexecdir=/usr/lib --without-included-gettext --enable-threads=posix --libdir=/usr/lib --enable-nls --with-sysroot=/ --enable-clocale=gnu --enable-libstdcxx-debug --enable-libstdcxx-time=yes --with-default-libstdcxx-abi=new --enable-gnu-unique-object --disable-libitm --disable-libquadmath --disable-libquadmath-support --enable-plugin --enable-default-pie --with-system-zlib --enable-libphobos-checking=release --without-target-system-zlib --enable-multiarch --disable-sjlj-exceptions --with-arch=armv7-a+fp --with-float=hard --with-mode=thumb --disable-werror --enable-checking=release --build=x86_64-linux-gnu --host=x86_64-linux-gnu --target=arm-linux-gnueabihf --program-prefix=arm-linux-gnueabihf- --includedir=/usr/arm-linux-gnueabihf/include --with-build-config=bootstrap-lto-lean --enable-link-mutex
Thread model: posix
Supported LTO compression algorithms: zlib zstd
gcc version 10.4.0 (Ubuntu 10.4.0-4ubuntu1~22.04)
SDXC
March 18, 2023, 6:29pm
17
I modified make menuconfig maybe I messed something up
frank-w
(Frank W.)
March 19, 2023, 6:55am
18
Have updated all lts branches,maybe there is a backported fix for gcc11 in 5.15. just try again as you got 6.1 working,you know the steps
SDXC
March 19, 2023, 7:59am
19
Thanks, I’ll check that and the wifi