Jump to content

RK3288 and RK3188


balbes150
 Share

Recommended Posts

@Capeschae I'd recommend to use armbian-config command to manage the most of generic settings, like network and wifi setup, install some additional network services (avahi) or bluetooth (bluz) etc, include edit the current/actual dts in the text editor with automatic its compilation

Link to comment
Share on other sites

Donate and support the project!

28 minutes ago, BOBAH said:

@Capeschae I'd recommend to use armbian-config command to manage the most of generic settings, like network and wifi setup, install some additional network services (avahi) or bluetooth (bluz) etc, include edit the current/actual dts in the text editor with automatic its compilation

Yes, I understand. That is what I tried to do, but the dts that is shown in the text editor is not the same as the dts that I refer to in /boot/extlinux/extlinux.conf. 

The dts that I can edit in armbian-config is for  "BQ Edison2 Quad-Core" and is different than the one I use. So I was wondering which one will be used when I edit.

 

Link to comment
Share on other sites

ver 20220205 kernel 5.10.96 for rk3188

 

Please note, now I am publishing new versions for rk3188 only on yandex disk (in order not to occupy Armbian resources with non-profile and unsupported versions that are released "as is" without any guarantees of work and support)

Link to comment
Share on other sites

@BOBAH Just FYI.

 

It seems that the dts editor in armbian-config uses the "first" dtb it finds in the /root/dtb folder.  Because there were multiple dtb files in my dtb folder a different one was picked than the one I have configured in my extlinux.conf file.

 

Removing all but one dtb files from the /root/dtb folder did the trick. 

 

After this I edited the clock rates to try to get LAN working, as you mentioned before. Unfortunately, but as expected, this did not have any results for my Minix NEO X7.

Link to comment
Share on other sites

Minix Neo X7 LAN via RTL8152: It seems that the RTL8152 is not powered on after booting. I cannot measure any supply voltages to the chip. When booting from Android NAND the supply voltages are there.

 

I expect that there will be a GPIO that switches the voltage regulator and I'm going to look into this. But it will be a search for the needle in the haystack.

Link to comment
Share on other sites

In a dmesg from a Minix Neo X7 running NETBSD that I found here, it says that LAN works. I find following info regarding GPIO:

gpio: 0x0000a000 0x00000104 -> 0x0000010c

gpio: 0x0000a004 0x00000104 -> 0x0000010c

gpio: 0x0003e000 0x00000000 -> 0x80000000

gpio: 0x0003e004 0x00000000 -> 0x80000000

gpio: 0x00080000 0x00000000 -> 0x04000000

gpio: 0x00080004 0x00000000 -> 0x04000000

gpio: 0x0000a000 0x0000010c -> 0x4000010c

gpio: 0x0000a004 0x0000010c -> 0x4000010c

gpio: 0x00080000 0x04000000 -> 0x04000400

gpio: 0x00080004 0x04000000 -> 0x04000400

 

Does anybody know how this relates to the GPIO settings in our Armbian DTS? In the DTS there are only gpio0 to gpio3 with different address ranges.

Link to comment
Share on other sites

Thanks for the updated RK3188 system @balbes150 its look running OK but i dont knowing if its being stable (the version before was crashing some time every 24H) but looks good after some hours.

The only large problem is missing modules that is exuded in the kernel that is making docker not working.

Quote

WARNING: Module bridge not found in direc /lib/modules/5.10.96-rk3188
WARNING: Module br_netfilter not found in directory /lib/modules/5.10.96-rk3188
Running iptables --wait -t nat -L -n failed with message: `iptables/1.8.7 Failed to initialize nft: Protocol

Then looking in the kernel config is most network modules disabled in the kernel.

 

Can you compiling one updated kernel with modules with enough function for running docker with bridged network ?

 

I dont have enough knowledge and hardware (only one converterebal with 4G RAM) for compiling all from your source code.

 

Thanks in advance !!

 

Mvh  Mattias

Link to comment
Share on other sites

LAN working on Minix NEO X7.

For now I gave up on trying to find the IO-pin that controls the LAN power on the Minix NEO X7 board.

By making a hardware modification, involving removing a voltage controller (because unfortunately 1 pin broke during the modification) and placing a wire to get the LAN power supply from another voltage controller, I got LAN up and running. I will leave it running for a couple of days to see if nothing breaks.

 

I can state that the drivers for the Realtek 8152B USB ethernet adapter are working.

Link to comment
Share on other sites

On 2/7/2022 at 3:58 PM, Capeschae said:

@BOBAH Just FYI.

 

It seems that the dts editor in armbian-config uses the "first" dtb it finds in the /root/dtb folder.  Because there were multiple dtb files in my dtb folder a different one was picked than the one I have configured in my extlinux.conf file.

 

Removing all but one dtb files from the /root/dtb folder did the trick. 

 

After this I edited the clock rates to try to get LAN working, as you mentioned before. Unfortunately, but as expected, this did not have any results for my Minix NEO X7.

Sorry for delay

I checked my configuration and found, that my `/boot/dtb/` (not `/root/dtb/` like in your case) also contains number or dtb files.
The `/boot/extlinux/extlinux.conf` refs to `/boot/dtb/rk3188-radxarock.dtb` in my case

And after calling dts editor in armbian-config, I see the file time has been updated and created backup file `/boot/dtb/rk3188-radxarock.dtb.bak` (with datetime of original file).


I think that armbian-config works as expected. At least in my case ;)

 

As you wrote above, the LAN on your android-box is based on RTL8152, so patching of clock rates will not help.

I glad to hear that you find source of issue (power control of RTL8152 via GPIO) and managed to patch power path to start working

 

Link to comment
Share on other sites

Hey @all,

 

like some others here I tried to reanimate my good old X7 by using Linux but like all the others here I'm not able to get builtin WiFi to work with the actual Armbian releases ... :-(

 

A few years ago I followed this description to install Ubuntu 12.04 on the device but after upgrading to 14.04 a new kernel was needed, to be able to upgrade to a newer version.

 

Because I'm not very good at building new images I tried to contact the developer of the initially used Armbian image (Linuxium) but he unfortunately had no appropriate device to play with.

 

On his GitHub site there are some rk3188 kernel repositories (3188-SRC-AP6210 and 3188-SRC-ORIG) containing ".config" files.

 

@balbes150: Could these ".config" files possibly help solving the above WiFi issues?

 

cu

Lanzi

Edited by lanzi
Link to comment
Share on other sites

5 часов назад, lanzi сказал:

Could these ".config" files possibly help solving the above WiFi issues?

no, it won't help, these are completely different kernels with a different driver organization.

Link to comment
Share on other sites

Hi All, may I ask for a guidance how to install Armbian on fresh Minix Neo X7 (Rockchip RK3188 Quad Core Cortex A9 1.6GHz CPU)

 

Thanks in advance!

Link to comment
Share on other sites

Hi All,

 

I was able to boot from SD card, after writing "Armbian_22.02.0-trunk_Rk3188_bullseye_current_5.10.96.img" to SD with usbimager as it suggested here:
https://docs.armbian.com/User-Guide_Getting-Started/

Using external USB-LAN 1Gb adapter (https://www.realtek.com/en/component/zoo/category/network-interface-controllers-10-100-1000m-gigabit-ethernet-usb-3-0-software) was able to fetch

"apt update && apt upgrade -y" ;  then installed to NAND/eMMC, but now with inserted SD card auto-power on does not work (jumper inside set to always-on)

 

any suggestions what is wrong ?

 

Thank you in advance!

 

Link to comment
Share on other sites

10 minutes ago, GUS said:

Hi All,

 

I was able to boot from SD card, after writing "Armbian_22.02.0-trunk_Rk3188_bullseye_current_5.10.96.img" to SD with usbimager as it suggested here:
https://docs.armbian.com/User-Guide_Getting-Started/

Using external USB-LAN 1Gb adapter (https://www.realtek.com/en/component/zoo/category/network-interface-controllers-10-100-1000m-gigabit-ethernet-usb-3-0-software) was able to fetch

"apt update && apt upgrade -y" ;  then installed to NAND/eMMC, but now with inserted SD card auto-power on does not work (jumper inside set to always-on)

 

any suggestions what is wrong ?

 

Thank you in advance!

 

Hi,

As far as I know internal memory is not recognized nor installation to it is supported. You will need to work from SD card. My Minix Neo X7 auto-boots from SD card to armbian correctly I have wasser 3.0.6 FW in the internal memory. 

Regards

Link to comment
Share on other sites

10 minutes ago, vindio74 said:

Hi,

As far as I know internal memory is not recognized nor installation to it is supported. You will need to work from SD card. My Minix Neo X7 auto-boots from SD card to armbian correctly I have wasser 3.0.6 FW in the internal memory. 

Regards

Thank you for confirmation! How can I flash wasser firmware?

Links here are dead:

https://forum.freaktab.com/node/10017

 

there 2 files needs to be installed via recovery mode ? (apply update from storage)

 

Firmware download: wasser-3.0.6-neox7
kernel download: kernel-cpu1800-gpu798-ddr800.7z
 

image.thumb.png.470cfa05c799e6140c4520a099e739ff.png

 

 

Currently I got screen from Freaktab 1.4 stuck when I remove SD card and boot

image.thumb.png.1cfab79f7312e3f62e34a4acf8b669c3.png

 

:)

Thank you!

 

Link to comment
Share on other sites

10 minutes ago, GUS said:

Thank you for confirmation! How can I flash wasser firmware?

Links here are dead:

https://forum.freaktab.com/node/10017

 

there 2 files needs to be installed via recovery mode ? (apply update from storage)

 

Firmware download: wasser-3.0.6-neox7
kernel download: kernel-cpu1800-gpu798-ddr800.7z
 

image.thumb.png.470cfa05c799e6140c4520a099e739ff.png

 

 

Currently I got screen from Freaktab 1.4 stuck when I remove SD card and boot

image.thumb.png.1cfab79f7312e3f62e34a4acf8b669c3.png

 

:)

Thank you!

 

If you suceeded in booting from SD card, you should be able to reboot with SD card inserted again. I wouldn't waste time in installing old Android system that you can't update, specially now that armbian is working (partially) for Minix.

Link to comment
Share on other sites

On 4/16/2022 at 11:53 PM, vindio74 said:

If you suceeded in booting from SD card, you should be able to reboot with SD card inserted again. I wouldn't waste time in installing old Android system that you can't update, specially now that armbian is working (partially) for Minix.

Hi, thank you for suggestion.

Seems like when I installed to Nand/eMMC, something is deleted from internal storage and now device does not start when SD card is inserted...

Yesterday I spend all day trying to flash wasser firmware using rockchip bach tool, but did not get success  yet...

Link to comment
Share on other sites

On 4/19/2022 at 4:38 AM, GUS said:

Hi, thank you for suggestion.

Seems like when I installed to Nand/eMMC, something is deleted from internal storage and now device does not start when SD card is inserted...

Yesterday I spend all day trying to flash wasser firmware using rockchip bach tool, but did not get success  yet...

I was in similar situation with my Neo X7, recovered installing twice original Android (250) using Factory tool  V1.63 (previous attempts with V1.27 failed)

after 2nd update Armbian and LE in SD Boots ok ( No ETH No Wlan ).

 

Firmware: X7-rk3188-250.7z

Driver Installer: DriverAssistant_v4.5

Windows Tool: FactoryTool_v1.63

Link to comment
Share on other sites

On 2/7/2022 at 10:52 AM, Capeschae said:

In a dmesg from a Minix Neo X7 running NETBSD that I found here, it says that LAN works. I find following info regarding GPIO:

gpio: 0x0000a000 0x00000104 -> 0x0000010c

gpio: 0x0000a004 0x00000104 -> 0x0000010c

gpio: 0x0003e000 0x00000000 -> 0x80000000

gpio: 0x0003e004 0x00000000 -> 0x80000000

gpio: 0x00080000 0x00000000 -> 0x04000000

gpio: 0x00080004 0x00000000 -> 0x04000000

gpio: 0x0000a000 0x0000010c -> 0x4000010c

gpio: 0x0000a004 0x0000010c -> 0x4000010c

gpio: 0x00080000 0x04000000 -> 0x04000400

gpio: 0x00080004 0x04000000 -> 0x04000400

 

Does anybody know how this relates to the GPIO settings in our Armbian DTS? In the DTS there are only gpio0 to gpio3 with different address ranges.

// Comparing base address this will point to each group
gpio: 0x0000a000 // gpio0: gpio0@2000a000
 0x00000104 gpio0_8 & gpio0_2 SET
  -> 0x0000010c && gpio0_3 SET
 
gpio: 0x0003e000 // gpio2: gpio2@2003e000
 0x00000000 all off
  -> 0x80000000 gpio2_31 SET
  
gpio: 0x00080000 // gpio3: gpio3@20080000
 0x00000000 all off
  -> 0x04000000 gpio3_26 SET

gpio: 0x0000a000 // gpio0: gpio0@2000a000
  0x0000010c gpio0_8 & gpio0_2 & gpio0_3 SET
   -> 0x4000010c && gpio0_30 SET

gpio: 0x00080000 // gpio3: gpio3@20080000
  0x04000000 gpio3_26 SET
   -> 0x04000400 && gpio3_10 SET
   
// From kernel source in table inside ../../mach-rk30/include/mach/gpio.h
	gpio0_2  RK30_PIN0_PA2 // WIFI,reset_gpio = <&gpio0 GPIO_A2 GPIO_ACTIVE_LOW>; (Asus Tinkerboard)
	gpio0_3  RK30_PIN0_PA3 //  
	gpio0_8  RK30_PIN0_PB0 // 
	gpio0_30 RK30_PIN0_PD6 // 

	gpio2_31 RK30_PIN2_PD7 // 
	
	gpio3_10 RK30_PIN3_PB2 // 
	gpio3_26 RK30_PIN3_PD2 // WIFI,host_wake_irq = <&gpio3 GPIO_D2 GPIO_ACTIVE_HIGH>; (Asus Tinkerboard)

 

Edited by lpraderi
Asus Tinkerboard GPIO as examples.
Link to comment
Share on other sites

On 4/25/2022 at 2:59 AM, lpraderi said:

I was in similar situation with my Neo X7, recovered installing twice original Android (250) using Factory tool  V1.63 (previous attempts with V1.27 failed)

after 2nd update Armbian and LE in SD Boots ok ( No ETH No Wlan ).

 

Firmware: X7-rk3188-250.7z

Driver Installer: DriverAssistant_v4.5

Windows Tool: FactoryTool_v1.63

hi, thanks for sharing.
I was struggling with this device several days, completly erased NAND and partitions :) on WIN 10 and USB3.0 ports DOES NOT WORK, so I switched to linux and USB2.0 with update_tool binary from RockChip : http://opensource.rock-chips.com/wiki_Upgradetool

 

 

I was able to flash:

wasser-3.0.6-minix-x7-rk3188.img

But now, if I flash (used USBImager, win32imager, Balena...no sense)

image.thumb.png.fa0ad23c8fe87e22035faebeba7aa14e.png

Armbian_22.02.0-trunk_Rk3188_bullseye_current_5.10.96.img

to Microsd, (SanDisk Ultra 32G Class10 ) I can not boot...since I got always power on jumper, it should start , but blue led does not power on...

If I remove microSD , Wasser Android starts/boots OK...

image.png.a2407d61cbb23c71e4f95f055a744524.png

Recovery is OK:

image.png.761bedd01d24739e926d12b721d1ba03.png

On 4/25/2022 at 2:59 AM, lpraderi said:

I was in similar situation with my Neo X7, recovered installing twice original Android (250) using Factory tool  V1.63 (previous attempts with V1.27 failed)

after 2nd update Armbian and LE in SD Boots ok ( No ETH No Wlan ).

 

Firmware: X7-rk3188-250.7z

Driver Installer: DriverAssistant_v4.5

Windows Tool: FactoryTool_v1.63

 

 

 

 

1.PNG

2.PNG

Link to comment
Share on other sites

Checked  Armbian_22.02.0-trunk_Rk3188_bullseye_current_5.10.96.img

changing dtb that ususally gives me partial function on Minix Neo X7 (Ugoos, CS968)

without luck (no boot, no led), same thing happened with latest LibreElec RK3188 images,

no boot, no led , sometimes kernel panic.

 

With this image and included default .dtb (rk3188-ugoos-ut2.dtb) boot from SD works ok:

 

Armbian_21.11.0-trunk_Rk3188_hirsute_current_5.10.63.img.xz

 

Also internal USB-LAN (RTL8152) works ok,

No Wifi , No BT  (GPIO3_23 conflict with ethernet)

will debug more about this and come back later.

Link to comment
Share on other sites

On 5/3/2022 at 11:27 AM, lpraderi said:

Checked  Armbian_22.02.0-trunk_Rk3188_bullseye_current_5.10.96.img

changing dtb that ususally gives me partial function on Minix Neo X7 (Ugoos, CS968)

without luck (no boot, no led), same thing happened with latest LibreElec RK3188 images,

no boot, no led , sometimes kernel panic.

 

With this image and included default .dtb (rk3188-ugoos-ut2.dtb) boot from SD works ok:

 

Armbian_21.11.0-trunk_Rk3188_hirsute_current_5.10.63.img.xz

 

Also internal USB-LAN (RTL8152) works ok,

No Wifi , No BT  (GPIO3_23 conflict with ethernet)

will debug more about this and come back later.

Hi, thanks for suggestion, I have tried this image:

Armbian_21.11.0-trunk_Rk3188_hirsute_current_5.10.63.img

 

Does not boot... no hdmi, no led...if I remove SD card, Wasser Android starts/boots OK!

I even connected external USB LAN and waited ~15 min...

 

Partitions on Minix NAND:

./upgrade_tool PL
Program Data in /root/.config/upgrade_tool
Partition Info(parameter):
NO  LBA        Size       Name
01  0x00002000 0x00002000 misc
02  0x00004000 0x00008000 kernel
03  0x0000c000 0x00008000 boot
04  0x00014000 0x0000c000 recovery
05  0x00020000 0x00100000 backup
06  0x00120000 0x00040000 cache
07  0x00160000 0x00400000 userdata
08  0x00560000 0x00002000 kpanic
09  0x00562000 0x00100000 system
10  0x00662000 0xffffffff user

 

UpgradeFirmware:

 

./upgrade_tool UF ./wasser-3.0.6-minix-x7-rk3188/wasser-3.0.6-minix-x7-rk3188.img
Program Data in /root/.config/upgrade_tool
Loading firmware...
Support Type:RK31       FW Ver:5.1.01   FW Time:2017-02-12 13:15:23
Loader ver:2.19 Loader Time:2014-10-29 17:47:37
Upgrade firmware ok.

 

MicroSD:

 

# fdisk -l /dev/sdb
Disk /dev/sdb: 29.72 GiB, 31914983424 bytes, 62333952 sectors
Disk model:  Storage Device 
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: dos
Disk identifier: 0x698ab215

Device     Boot Start     End Sectors  Size Id Type
/dev/sdb1       32768 2531327 2498560  1.2G 83 Linux
                                                         

 

boot dir list on SDCard; FS ext4

# ll                           
total 27312
-rw-r--r-- 1 root root    1536 Sep  8  2021 armbian_first_run.txt
-rw-r--r-- 1 root root   38518 Sep  8  2021 boot.bmp
-rw-r--r-- 1 root root  155492 Sep  8  2021 config-5.10.63-rk3188
drwxr-xr-x 2 root root    4096 Sep  8  2021 dtb
drwxrwxr-x 2 root root    4096 Sep  8  2021 extlinux
-rw-r--r-- 1 root root 8864809 Sep  8  2021 initrd.img-5.10.63-rk3188
-rw-r--r-- 1 root root 3209432 Sep  8  2021 System.map-5.10.63-rk3188
lrwxrwxrwx 1 root root      22 Sep  8  2021 uInitrd -> uInitrd-5.10.63-rk3188
-rw-r--r-- 1 root root 8864873 Sep  8  2021 uInitrd-5.10.63-rk3188
-rwxr-xr-x 1 root root 6810096 Sep  8  2021 vmlinuz-5.10.63-rk3188
lrwxrwxrwx 1 root root      22 Sep  8  2021 zImage -> vmlinuz-5.10.63-rk3188

                                                         

# cat ./extlinux/extlinux.conf 
LABEL Armbian
  LINUX /boot/zImage
  INITRD /boot/uInitrd
  FDT /boot/dtb/rk3188-ugoos-ut2.dtb
  APPEND root=UUID=93ab2d09-92a4-4aec-bc9f-1247a2b6b211 console=uart8250,mmio32,0x20064000 console=tty0 coherent_pool=2M video=HDMI-A-1:e rootflags=data=writeback rw no_console_suspend consoleblank=0 fsck.fix=yes fsck.repair=yes net.ifnames=0 bootsplash.bootfile=bootsplash.armbian

 

 

maybe I need to flash another boot file ? from Firmware: X7-rk3188-250.7z ? or another Loader ?

Link to comment
Share on other sites

story goes on :)

flashed this firmware to the device NAND:

# ~/minix7/Linux_Upgrade_Tool_v1.49/upgrade_tool uf  ./x7-rk3188-250.img                                                  
Program Data in /root/.config/upgrade_tool
Loading firmware...
Support Type:RK31       FW Ver:4.4.02   FW Time:2015-12-21 18:12:34
Loader ver:2.13 Loader Time:2014-03-03 18:08:38
Upgrade firmware ok.

 

result:

 

no LED, no HDMI signal.

USB LAN adapter LEDs are on, but after 10 min no DHCP request appeared...

 

SDCard partition remained the same..haven't been resized...

 

# fdisk -l /dev/sdb        
Disk /dev/sdb: 29.72 GiB, 31914983424 bytes, 62333952 sectors
Disk model:  Storage Device 
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: dos
Disk identifier: 0x698ab215

Device     Boot Start     End Sectors  Size Id Type
/dev/sdb1       32768 2531327 2498560  1.2G 83 Linux

 

Link to comment
Share on other sites

 Share

×
×
  • Create New...