Jump to content

Recommended Posts

Posted

@Nuno Cruz - i just found an old note from me regarding this box: "serial port might be the three test points next to each other with two resistors - yes it is :)" - maybe it helps you finding the serial port - i do not have mine here right now ...

 

in order to get anything going it is required to get it recognized by the rkdeveloptool again ... iirc there were even two test points on the backside of or near the emmc chip to put it into maskrom mode (i think one of them had to be grounded, but i might be wrong)

 

good luck - hexdump

Posted

@hexdump I think I found the serial, in a bad place to my soldering skills,  the maskrom poins I also found them, this is mentioned in a freaklab post. But the are recomending to shot the maskroom? put some solder to keep them connected? 
I gonna try this on a day with more time and without my 4 years daugther on my foot.
Thanks

Posted
  On 8/30/2018 at 2:58 PM, balbes150 said:

The order of installation in eMMC.

 

1. Download, unzip and burn the image to SD card.

2. Start Armbian on the TV box and perform the initial setup of the system.

3. If the system works correctly and you are satisfied, run the utility "ddbr" and create a full backup of eMMC (this is a prerequisite).

4. Rename the file "/boot/mvr9-uboot.img" in "/boot/uboot.img".

5. Run as user "root" script "/boot/create-mbr-linux.sh"

6. To run the script "/root/install.sh

Expand  

Is the ethernet working now. Also does wifi work. I need either of them. Also is the procedure still the same

Posted

hey there, 

 

I'm playing with T9 player based on RK3328, 4/64GB, DTD file is from hexdump from his latest post. But I'm experiencing kernel panics most probably related to emmc. when I run "yes > ./test.txt" it goes crazy in few minutes and ends up with this

 

in ssh session I get this

Message from syslogd@plex at Jun  1 13:01:11 ...
 kernel:[  236.370456] Internal error: Oops - bad mode: 0 [#1] SMP
Message from syslogd@plex at Jun  1 13:01:11 ...
 kernel:[  236.370548] Process lsb_release (pid: 2595, stack limit = 0xffffffc0f0230000)
Message from syslogd@plex at Jun  1 13:01:11 ...
 kernel:[  236.372255] Internal error: Oops - bad mode: 0 [#2] SMP
Message from syslogd@plex at Jun  1 13:01:11 ...
 kernel:[  236.372314] Process telegraf (pid: 929, stack limit = 0xffffffc0f0270000)
Message from syslogd@plex at Jun  1 13:01:11 ...
 kernel:[  236.585493] Internal error: Oops - bad mode: 0 [#3] SMP
Message from syslogd@plex at Jun  1 13:01:11 ...
 kernel:[  236.695864] Process yes (pid: 2477, stack limit = 0xffffffc0f02b4000)
Segmentation fault

on screen it's quite lot of text, says BUG: spinlock lockup suspected on CPU#0

 

using ARMBIAN 5.82 user-built Debian GNU/Linux 9 (stretch) 4.4.154-rk3328-tv, this

LABEL Armbian
  LINUX /Image
  INITRD /uInitrd
  FDT /dtb/rockchip/rk3328-t9.dtb
  APPEND root=LABEL=ROOT_EMMC rootflags=data=writeback rw console=uart8250,mmio32,0xff130000 console=tty0 no_console_suspend consoleblank=0 fsck.fix=yes fsck.repair=yes net.ifnames=0 

 

 

I read somewhere about lowering eMMC frequency from 200MHz to 150MHz, is this possible somehow, please?

 

 

update: ek3328-evb.dtb is running more stable, no crashes during excessive IO on disk. ek3328-evb.dtb has no keyboard/mouse, that is not an issue for me. And it crashed too in few hours. Kept the CPU temperature a LOT lower and crashed a lot later than using the ek3328-t9.dtb file

 

 

Posted
  On 5/13/2020 at 5:43 PM, DigitalDaz said:

Hello,

on my h96 max +, with the dtb rk3328-box-h96mp.dtb from @easyb, my box starts and works very well.

The only problem is that the mac address changes with each restart.

How do I get a fixed mac address?

tried with Armbian_20.05.1_Arm-64_buster_current_5.6.2_20200408.img and the latest 5.7.... buster no desktop

 

Alex

....................

I'm not even sure my box will boot with that combination. I'll try later today.

 

Expand  

Hello,

could you try?

Do you also have the mac address problem?
I did not find a solution

 

Alex

Posted

Is there a set of instructions available on how to update from an early version to a recent version?

 

I got a H96 Max rk3328 running a very early release of the Armbian rk3328 builds, i want to update to a recent version now and after 2 days of searching and trying still no luck...

Posted

Hi @balbes150

 

Thank you so much for the great work !

 

Could you please share the recipe to get this image built using the ./compile.sh from armbian ?

 

By looking at it it might require some board config ?

 

Thanks in advance,

Rafik

Posted
  On 7/20/2020 at 2:40 PM, rafik24 said:

Could you please share the recipe to get this image built using the ./compile.sh from armbian ?

 

By looking at it it might require some board config ?

Expand  

What do you want to get out of it ?

The build is performed using the universal arm-64 profile, followed by adding u-boot when writing the image.

 

Posted

Thanks a lot for this work! I managed to get it working on mine with only a few problems :

- Ethernet is not detected

- Emmc / SD is not detected by the kernel either

 

Currently trying to sort those issues out myself playing with the dtb but it may be a problem on my side. Any ideas? I have the exact same model.

Posted
  On 1/10/2020 at 11:03 PM, hexdump said:

in case anyone wants to give my self built u-boot a try with his rk3318 box, it is attached here. just download it and also get the trust.img from:

then image the rk-aml-aw image from here to an sd-card, add the rockchip rk3328 u-boot for it like described at the bottom of the first post there (most probably this step is not really required, as the relevant part will be overwritten soon, but it can't be wrong). then add and reference the attached rk3318-t9-mainline.dtb (because those images are built based on mainline and not the rockchip 4.4 kernel).

 

now run the following commands:

dd if=uboot-rk3318.img of=/dev/yoursdcard seek=16384
dd if=trust.img of=/dev/yoursdcard seek=24576

and try to boot that sd card - might be interesting for @Tarzanus, maybe for others too ...

 

good luck and best wishes - hexdump

 

 

uboot-rk3318.img 4 MB · 152 downloads

rk3318-t9-mainline.dtb 33.12 kB · 149 downloads

Expand  

 

@hexdump,I have a h96max Rk3318 box 4+32GB,as you say, this tvbox could not boot from usb,I flash usb and sdcard from image of Armbian_20.02.0-rc1.038_Rk3328-tv_bionic_current_5.5.0-rc6_20200205.img,dd  my as follows ,

dd if=./uboot-rk3318-h96max.img   of=/dev/sdb  seek=16384   conv=sync,fsync
dd if=./trust.img     of=/dev/sdb seek=24576   conv=sync,fsync

    rename uboot.sd to uboot.ext,  and edit config in uEnv.txt

# rk-3328
FDT=/dtb/rockchip/rk3318-h96max.dtb
#FDT=/dtb/rockchip/rk3328-box.dtb
#APPEND=root=LABEL=ROOTFS rootflags=data=writeback rw console=uart8250,mmio32,0xff130000 console=tty0 no_console_suspend consoleblank=0 fsck.fix=yes fsck.repair=yes net.ifnames=0
    then insert sdcard and usb in box,turn on power with toothstick in AV hole,but no hdmi appears,as if my box have not boot yet.

@hexdump,could you explain if I made some mistake from using your uboot-rk3318-h96max.img and rk3318-h96max.dtb,why your box booting normally.

thanks - chess12

Posted

my dtb might be too outdated meanwhile and my u-boot might not work well with your box - in general i can only recommend you to get another better supported box - rk3318 is not really supported, gives a lot of trouble  and is very low end ... i got mine working and as it seems a few others too, but there is no guarantee that it will work for other boxes ... minimum to debug is to solder a serial console  to the box to see what the problem is and even then its not sure if it can be made working ...

Posted

hexdump,thank you for reply my question.I bought another X96Airbox,and installed Armbian in sdcard ,but I could not install Armbian in emmc ,this forum said this box is too new to support it,so I thougt of running Armbian in h96max to have a try.

Posted (edited)
  On 8/28/2020 at 3:27 PM, hexdump said:

my dtb might be too outdated meanwhile and my u-boot might not work well with your box - in general i can only recommend you to get another better supported box - rk3318 is not really supported, gives a lot of trouble  and is very low end ... i got mine working and as it seems a few others too, but there is no guarantee that it will work for other boxes ... minimum to debug is to solder a serial console  to the box to see what the problem is and even then its not sure if it can be made working ...

Expand  

DDR version 1.16 20190713
ID:0xFFF
In
DDR3
333MHz
Bus Width=32 Col=11 Bank=8 Row=16 CS=1 Die Bus-Width=16 Size=4096MB
ddrconfig:3
OUT
Boot1 Release Time: May 13 2019 17:34:36, version: 2.50
ChipType = 0x11, 233
mmc2:cmd19,100
SdmmcInit=2 0
BootCapSize=2000
UserCapSize=29820MB
FwPartOffset=2000 , 2000
mmc0:cmd5,20
SdmmcInit=0 0
BootCapSize=0
UserCapSize=30040MB
FwPartOffset=2000 , 0
StorageInit ok = 393537
Raw SecureMode = 0
SecureInit read PBA: 0x4
SecureInit read PBA: 0x404
SecureInit read PBA: 0x804
SecureInit read PBA: 0xc04
SecureInit read PBA: 0x1004
SecureInit ret = 0, SecureMode = 0
atags_set_bootdev: ret:(0)
GPT 0x337a9f0 signature is wrong
recovery gpt...
GPT 0x337a9f0 signature is wrong
recovery gpt fail!
LoadTrust Addr:0x4000
No find bl30.bin
No find bl32.bin
Load uboot, ReadLba = 2000
Load OK, addr=0x200000, size=0xa2ad8
RunBL31 0x10000
NOTICE:  BL31: v1.3(debug):f947c7e
NOTICE:  BL31: Built : 15:40:24, Feb  6 2020
NOTICE:  BL31:Rockchip release version: v1.3
INFO:    ARM GICv2 driver initialized
INFO:    Using rkfiq sec cpu_context!
INFO:    boot cpu mask: 1
agV." ` 0$ar0q$ {uqEWrPH

-------------

@hexdump, I bought two uart line to get my booting message,I found that my "INFO:    Using rkfiq sec cpu_context!" is diffrent  with yours, so it stop booting here, cannot boot into uboot ,maybe it could give you a hint why 3318 cannot boot from sd card. 

 

Edited by chess12
some fault
Posted (edited)
  Reveal hidden contents

 

Edited by Werner
Use spoiler for longer pastes
Posted

When l plug uart line,i find that my box pause at Uboot every time,so I try flash the three img files with dd if as you provided ,so it works.And I find that my box boots with no logo ,after 1-2 miniutes,it comes into armbian logo to start kernel.

Posted

Hi!

i have downloaded your Armbian_20.07_Rk3328-tv_focal_current_5.7.8_desktop and writen to a SD and a USB using balena.io.

 

I have an A5X Max+ 4K 64Gb/4Gb.

 

Tested all RK3328 dtb.img of your image dtb directory on SD and USB, using alone SD to boot, alone USB to boot and combined SD+USB to boot, pressing reset button in AV connector while pluging the power but not worked, all the times boots, shows screen with circle indicating Deleting and reboots, then boots Android in a clean install.

 

How could i boot and test Armbian on my device?

 

Thanks for your work!

 

Regards

 

Jps1x2

Posted
  On 10/18/2020 at 1:35 PM, balbes150 said:

 

Watch carefully the first post of this topic, how to configure and run the system on rk3328.

Expand  

Thanks for information.


On my SD partition in FAT format i can't see folder extlinux that contains extlinux.conf file to change FDT information about dtb to use.


But i see file uEnv.txt that contains a FDT line example to be modified. Is this the right file to modify?


Thanks and regards


Jps1x2

Posted
  On 10/18/2020 at 1:35 PM, balbes150 said:

 

Watch carefully the first post of this topic, how to configure and run the system on rk3328.

Expand  

Hi,
modified all needed times file uEnv.txt to test all RK3328 dtb files on /dtb/rockchip folder of FAT partition to boot.
Tested again on SD alone, USB alone, and at the same time SD+USB.
Normal boot without pressing reset button.
Nothing happened, inmediately boots Android and only creates on SD or USB a folder named Android and a folder named LOST.DIR

Could i modify in any way from Android 8.1 using ADB, ConnectBot or any terminal emulator, that Android system and force boot from SD?

Original operating system of that device is Android 8.1.

Here you can see images of my device:

https://t.me/s/TempChannelForArmbian

Is it posible to use UART to modify with putty the boot sequence?

i can buy a USB Uart on Aliexpress to connect my device and give you information. Is this USB UART ok?:

FT232RL 3.3V 5V FTDI Mini USB to TTL Serial UART Adapter Module MiniUSB Port Converter+Cable for Ardu ino Pro PIC DIY
https://a.aliexpress.com/_BTs9Oo

Thanks and Regards

Jps1x2
 

Posted
  On 10/21/2020 at 1:15 PM, jps1x2 said:

i can buy a USB Uart on Aliexpress to connect my device and give you information.

Expand  

This is the only way to find out what is happening at startup and try to find the cause of the problem.

Posted
  On 10/21/2020 at 1:20 PM, balbes150 said:

This is the only way to find out what is happening at startup and try to find the cause of the problem.

Expand  

 

Hi,

Tested with UART connection and i have this booting normally:

https://pastebin.com/9qUwTGEJ

This booting with SD card indicating in uEnv.txt: FDT=/dtb/rockchip/rk3328-rockbox.dtb

https://pastebin.com/xh8N8BQY

This booting with USB indicating in uEnv.txt: FDT=/dtb/rockchip/rk3328-rockbox.dtb

https://pastebin.com/Y659K1rK

This booting with SD Card + USB indicating in both external devices uEnv.txt: FDT=/dtb/rockchip/rk3328-rockbox.dtb

https://pastebin.com/ptghKnt3

Thank you very much for your help!

Regards

jps1x2

Posted
  On 10/23/2020 at 4:35 AM, jps1x2 said:

This booting with SD card indicating in uEnv.txt: FDT=/dtb/rockchip/rk3328-rockbox.dtb

Expand  

Your model does not attempt to access the launch from external media at all. Try writing the image with another program to the SD card (the SD card is a key element for starting the system). Either the manufacturer may not be using a standard SD card connection, or the firmware may have blocked this option. Try stopping the u-boot startup (press and hold the space bar while powering up). If the launch is not interrupted, you will have to try to completely erase the eMMC (details on how to do this with the RK tools are available on the forum in other topics).

Posted

i think the a5x max+ is one of the weird boxes which has the sd card not wired at the proper mmc port and thus cannot boot from sd card at all - i once made a hack for my h96max (same problem) to replace the legacy u-boot on emmc with a mainline one configured for this strange mmc setup and reading extlinux then first from the sd card - this way i can boot it now quite normally from sd card - but: this hack is risky as you can easily brick your box doing such low level things, this hack worked for me and my box but it does not have to work for yours and you are on your own when trying this - here are some notes from my hack back then: https://github.com/hexdump0815/u-boot-misc/blob/master/readme.rk3328-no-sd-boot ... btw. i think interrupting u-boot on rockchip boxes is usually disabled

 

best wishes - hexdump

Posted
  On 10/23/2020 at 8:12 AM, balbes150 said:

Your model does not attempt to access the launch from external media at all. Try writing the image with another program to the SD card (the SD card is a key element for starting the system). Either the manufacturer may not be using a standard SD card connection, or the firmware may have blocked this option. Try stopping the u-boot startup (press and hold the space bar while powering up). If the launch is not interrupted, you will have to try to completely erase the eMMC (details on how to do this with the RK tools are available on the forum in other topics).

Expand  

 

  On 10/23/2020 at 4:37 PM, hexdump said:

i think the a5x max+ is one of the weird boxes which has the sd card not wired at the proper mmc port and thus cannot boot from sd card at all - i once made a hack for my h96max (same problem) to replace the legacy u-boot on emmc with a mainline one configured for this strange mmc setup and reading extlinux then first from the sd card - this way i can boot it now quite normally from sd card - but: this hack is risky as you can easily brick your box doing such low level things, this hack worked for me and my box but it does not have to work for yours and you are on your own when trying this - here are some notes from my hack back then: https://github.com/hexdump0815/u-boot-misc/blob/master/readme.rk3328-no-sd-boot ... btw. i think interrupting u-boot on rockchip boxes is usually disabled

 

best wishes - hexdump

Expand  

 

@hexdump and @balbes150  

Tested stop booting pressing any key on keyboard and do not worked, tested with other sd and other program to write image to it and the result is the same.

I am not an expert on linux and i see that hexdump is replacing boot from his device, that process seems difficult.

If it help to do it easy i have the img to install Android 8.1 to this device (2768333 A5X MAX+ TV box ROM firmware pack.7z), i had to install it days ago with Rockchip_FactoryTool_v1.64 and it can be installed every times i need. Could this img be mounted on a linux s.o. as a loop device and changed to hack boot procedure to boot from sd and then install it with Rockchip_FactoryTool_v1.64?

is it possible to modify boot from Android rooting it using connectbot or terminal emulator apps? Is it possible to change things from UART connection or is it only used to see logs?

I have only a little experience using linux and if the steps can be made easy i would try to do it.

Thank you very much for your help and for your time.

Regards

Jps1x2
 

Posted

@jps1x2 - if you do not feel comfortable doing the low level changes needed, then it might be better to keep this box running android and try to get something else better supported i would suggest.

 

best wishes - hexdump

Posted
  On 10/24/2020 at 7:17 AM, hexdump said:

@jps1x2 - if you do not feel comfortable doing the low level changes needed, then it might be better to keep this box running android and try to get something else better supported i would suggest.

 

best wishes - hexdump

Expand  

@hexdump I'll try and I'm sure I'll learn something along the way.

I have created a linux VM on My Virtualbox and tested UART, it is working fine, then i can test with it.

About the following command on your notes:

dd if=uboot.img of=/dev/sdx seek=16384

Are there here on forum uboot.img to use or do i have to compile it?

That command is to write to /dev/sdx on tv box or on sd card to boot?

If the command is writen to tv box is it writen from UART connection?

About command:

rkdeveloptool wl 0x2000 u-boot-image-for-emmc-h96max-rk3328.img

Are there here on forum valid img files that i can use of this type or do i have to compile it?

Another way to do it if i do not need to boot from SD, is it possible to write directly to emmc armbian image with any tool?

Regards

Jps1x2
 

Guest
This topic is now closed to further replies.
×
×
  • Create New...

Important Information

Terms of Use - Privacy Policy - Guidelines