greg798 reacted to joaofl in Android on H6 Boards
So I managed to get the ehternet working on the OPiOnePlus running the PineH64 image.
Finally I have a stable media center, with kodi and youtube running smoothly. So far, quiet stable.
So in summary, after a lot of digging, I figured out some tools to: (1) unpack both android images from Xunlong and PineH64, and (2) copy the dtb files from one image to the other one.
If you only want it up running, then you can download the image that I already modified from the link below, with no need to do the hacking. Otherwise, follows the steps below.
-------- How to ------------
First one needs download both image files (Xunlong and Pine) and then unpack them using the imgRePacker tool, from here
Then, you move the file boot_package.fex from the Xunlong to the Pine image. Then you re-pack it using the same imgRePacker tool.
Burn it, and it should work.
If you want to customize the dtb file, then there is a couple of steps more.
You need to unpack the boot_package.fex files to expose the 3 dtb files that are inside it (only the third one seems to be a valid one), using this tool
Once they are unpacked, one can use the command dtc -I dtb -O dts -o out.dts in.dtb to convert the binarry to string, and edit it....
To re-pack the boot_package.fex file you have to do the other way around, and convert back the 3 extracted device trees from string to binary back. The to repack them simply type cat *.dtb > boot_package.fex (that considering that you have the extracted dtb files ordered alphabetically.
greg798 reacted to kexec in Orangepi 3 h6 allwiner chip
@megi thank you, you were right, video is working as it should with your kernel.
HDMI-1 connected primary 1920x1080+0+0 (normal left inverted right x axis y axis) 160mm x 90mm 1920x1080 60.00*+ 50.00 59.94 30.00 25.00 24.00 29.97 23.98 1920x1080i 60.00 50.00 59.94 1680x1050 59.88 1600x900 60.00 1280x1024 75.02 60.02 1440x900 59.90 1366x768 59.79 1280x800 59.91 1152x864 75.00 1280x720 60.00 50.00 59.94 1024x768 75.03 70.07 60.00 832x624 74.55 800x600 72.19 75.00 60.32 720x576 50.00 720x480 60.00 59.94 640x480 75.00 72.81 66.67 60.00 59.94 720x400 70.08
fast and dirty way to test
wget https://xff.cz/kernels/pi3-5.1-20190412.tar.gz tar -xf pi3-5.1-20190412.tar.gz cd pi3-5.1/ dd if=uboot.bin of=/dev/mmcblk0 bs=1024 seek=8 #assuming that booting from sdcard cp Image /boot/Image cp board.dtb /boot/dtb/allwinner/sun50i-h6-orangepi-3.dtb cp -r modules/lib/modules /lib reboot
that was enough to get video. @megi all modules are compiled in kernel ?
P.S wifi device is also present without any firmware file rename hacks
greg798 reacted to dolphs in H6 Famous Reboot problem
Errr from " H6 famous reboot problem " it seems just the orangepi's are affected (opioneplus and opilite2, opi3 )?
reiniting eth0 did work from cold boot ( of course ):
root@orangepioneplus:~# ip link set dev eth0 down && ip link set dev eth0 up Apr 11 05:05:48 localhost kernel: [ 425.696366] dwmac-sun8i 5020000.ethernet eth0: Link is Down Apr 11 05:05:48 localhost kernel: [ 425.705231] RTL8211E Gigabit Ethernet stmmac-0:01: attached PHY driver [RTL8211E Gigabit Ethernet] (mii_bus:phy_addr=stmmac-0:01, irq=POLL) Apr 11 05:05:48 localhost kernel: [ 425.707898] dwmac-sun8i 5020000.ethernet eth0: No Safety Features support found Apr 11 05:05:48 localhost kernel: [ 425.707918] dwmac-sun8i 5020000.ethernet eth0: No MAC Management Counters available Apr 11 05:05:48 localhost kernel: [ 425.707930] dwmac-sun8i 5020000.ethernet eth0: PTP not supported by HW Apr 11 05:05:53 localhost kernel: [ 430.819302] dwmac-sun8i 5020000.ethernet eth0: Link is Up - 1Gbps/Full - flow control rx/tx so after that I thought to be fresh and smart but naye: no joy,
bringing in a WiFi dongle should help possibly to get more logs at this stage ... ...
root@orangepioneplus:~# ip link set dev eth0 down && reboot