Jump to content

Recommended Posts

Posted
  On 11/25/2020 at 6:32 AM, fabiobassa said:

@zero48

Your board is one on which we worked a lot, is well known and totally and well supported in armbian.

It has NAND so pay attention you have to use stePnand for internal installation ;

it has DDR3 upvto 768 MHz so is one of my favourites for his speed

You will be very satisfied of it !!!

 

Thank you for photos, cheers

 

EDIT:

Those lovely China producers..

It should be a 3228 with one or two giga of ram. Look at what they say .. 4 GB ram......:rolleyes:

 

Anyway you can check those infos with the efuse and with " free"  command.

 

Please read back the forum since there are many useful infos you can grab from the board with some command lines

Expand  

You Rock !! Thanks for the info

I'll get a linux desktop running ASP so I can complete this.

For teh moment I'm using windows and Once I flash the imagetool , I cant read the SD in order to add the image.

(Unless I'm mistaken something).

 

Zero48

Posted
  On 11/24/2020 at 11:57 PM, zero48 said:

I'll Try Jock suggestion . I think I'll get a Linux machine since windows wont Show me anything after imagetool is flashed with Balena . 

 

Expand  

That's very strange, because the multitool image is made on purpose to work without issues with Windows too: that's the main reason why there is the FAT partition

Posted
  On 11/25/2020 at 10:02 AM, megaduo said:

I have got some gpio configuration from offical firmware,perhaps wlan sdio power is controled by gpio-93(gpio2-29)  (wlan_default_wlan_po) or sdio-pwren pin 30 (gpio0-30)?

  Reveal hidden contents

 

Expand  

Uhm can't really say what is the GPIO enabling power to the chip from that debug info. Often gpios are not registered on those maps and it is difficult to understand what is where.

BTW, it is very likely that gpio2-29 is our subject (I see that in the dmesg of your first post too). On regular boxes it is gpio2-26 and on boards with esp8089 it is gpio2-27, so the "band" is that one.

 

This is the patch for the device tree overlays, you may create a new device tree overlay on the base of the esp8089 one, compile using dtc and apply it. You may also try to change ACTIVE_LOW with ACTIVE_HIGH due to pin polarity. Maybe later I can provide you a couple of ready made dtbo to test.

 

Posted
  On 11/25/2020 at 1:48 PM, jock said:

That's very strange, because the multitool image is made on purpose to work without issues with Windows too: that's the main reason why there is the FAT partition

Expand  

Once I flash the imagetool with balena I cant read it anymore, I have tried with 2 other SD (16B and 4GB)  cards and even an USB (16GB) .

In another hands I think the boot process of the box  is affected. 

The only thing I get is this when I press the Hidden button https://drive.google.com/file/d/1Skrgy_xKlxgWpjPLNhPxhz-ZASmFdeli/view?usp=sharing

I got 4 units from a friend all same model , same behavior.

I do thanks you guys for the support , I'll get it eventually.

 

Any SD formating tool for windows besides the WIN10 format tool ? 

 

Zero48

 

Posted
  On 11/25/2020 at 3:06 PM, zero48 said:

Once I flash the imagetool with balena I cant read it anymore, I have tried with 2 other SD (16B and 4GB)  cards and even an USB (16GB) .

In another hands I think the boot process of the box  is affected. 

The only thing I get is this when I press the Hidden button https://drive.google.com/file/d/1Skrgy_xKlxgWpjPLNhPxhz-ZASmFdeli/view?usp=sharing

I got 4 units from a friend all same model , same behavior.

I do thanks you guys for the support , I'll get it eventually.

 

Any SD formating tool for windows besides the WIN10 format tool ? 

 

Zero48

 

Expand  

Try Rufus https://rufus.ie/

 I always keep "Rufus", "Win32 Disk Imager" and "HP USB Disk Storage Format Tool" handy for recording images.

And you no need press "magic button" for boot with Multitool .

Posted

@jock

Short status report on my case:

 

1. The only package - sources + headers - I've been able to obtain was for 5.9.10-rk322x on top of Armbian_20.11.0-trunk_Rk322x-box_buster_current_5.8.12_minimal.img.xz image (your build).

 

2 Prepared the build environment by:

 

- copying the /boot/config-5.9.10-rk322x to .config

- copying the Module.symvers to source build folder

- make oldconfig

- make menuconfig

- selecting/enabling (*) the respective PANASONIC MN88472 driver

- make scripts

- make prepare

- make modules_prepare

- make -C . M=drivers/media/dvbfrontends

also

- make drivers/media/dvb-frontends/mn88472.ko

- copy the built driver module to /lib/modules/5.9.10-rk322x/kernel/drivers/media/dvb-frontends/

- depmod

- modprobe mn88472

 

dmesg log (excerpt):

  Reveal hidden contents

 

modinfo shows:

  Reveal hidden contents

 

modprobe mn88472

  Reveal hidden contents

 

modprobe -f --force-vermagic mn88472:

  Reveal hidden contents

 

For example,

the vermagic for dvb_usb.ko module (embedded, pre-built):

  Reveal hidden contents

 

Any ideas how to proceed further are much appreciated! :beer:

Posted
  On 11/25/2020 at 6:28 PM, Anung Un Rama said:

@jock

Short status report on my case:

 

1. The only package - sources + headers - I've been able to obtain was for 5.9.10-rk322x on top of Armbian_20.11.0-trunk_Rk322x-box_buster_current_5.8.12_minimal.img.xz image (your build).

 

2 Prepared the build environment by:

 

- copying the /boot/config-5.9.10-rk322x to .config

- copying the Module.symvers to source build folder

- make oldconfig

- make menuconfig

- selecting/enabling (*) the respective PANASONIC MN88472 driver

- make scripts

- make prepare

- make modules_prepare

- make -C . M=drivers/media/dvbfrontends

also

- make drivers/media/dvb-frontends/mn88472.ko

- copy the built driver module to /lib/modules/5.9.10-rk322x/kernel/drivers/media/dvb-frontends/

- depmod

- modprobe mn88472

 

dmesg log (excerpt):

  Reveal hidden contents

 

modinfo shows:

  Reveal hidden contents

 

modprobe mn88472

  Reveal hidden contents

 

modprobe -f --force-vermagic mn88472:

  Reveal hidden contents

 

For example,

the vermagic for dvb_usb.ko module (embedded, pre-built):

  Reveal hidden contents

 

Any ideas how to proceed further are much appreciated! :beer:

Expand  

 

Since you used one of my development builds you didn't get all the kernels sources for your specific kernel I guess. Normally the stable versions downloaded from armbian main download page are better if you're going to use the box for some stable usage.

By the way, you just made a half compilation of the 5.9.10 kernel I guess :D

 

Normally the steps I'm used to do on x86 are these, starting from clean sources:

 

- copy the config file you find in /boot into the kernel source directory as  .config 

- run make menuconfig to configure the kernel (enable and disable modules)

- run make -j4 to compile the kernel (using 4 threads)

- run make zImage to make a compressed kernel

- run make modules -j4 to compile the kernel modules

- run sudo make modules_install to install the kernel modules

- run sudo make install to install the kernel - I don't know if this install the zImage or uncompressed image. You may want to run cp arch/arm/boot/zImage /boot/vmlinuz-5.9.10-rockchip and then cd /boot; ln -sf vmlinuz-5.9.10-rockchip zImage to manually install the kernel

- run update-initramfs -c -k 5.9.10 to create the initramfs for kernel 5.9.10

 

That should do it, but beware that I never tested this on a box directly, so don't blame me if your system does not start back again :D

 

 

Posted

@jock

I don't need the whole kernel, just the mn88472.ko per this kernel.

That's why I ensure the system has the kernel running, sources an headers for it,

then try to compile the minimum of it, following the dependencies, of course.

However,

vermagic of the pre-compiled modules, which came with the running kernel,

differ from the newly compiled ones (headers & sources obtained via armbian-config)...

 

And the box is not "in production", but a PoC still,

so I can start from scratch whenever I want... :D

 

Posted
  On 11/25/2020 at 3:45 PM, Maker39 said:

Try Rufus https://rufus.ie/

 I always keep "Rufus", "Win32 Disk Imager" and "HP USB Disk Storage Format Tool" handy for recording images.

And you no need press "magic button" for boot with Multitool .

Expand  

Thanks very much

Posted
  On 11/25/2020 at 10:29 PM, Anung Un Rama said:

@jock

I don't need the whole kernel, just the mn88472.ko per this kernel.

That's why I ensure the system has the kernel running, sources an headers for it,

then try to compile the minimum of it, following the dependencies, of course.

However,

vermagic of the pre-compiled modules, which came with the running kernel,

differ from the newly compiled ones (headers & sources obtained via armbian-config)...

 

And the box is not "in production", but a PoC still,

so I can start from scratch whenever I want... :D

 

Expand  

But I see the version magic error, if you want to install the module for kernel 5.9.10 you must be running kernel 5.9.10, otherwise it will never load.

That's why I was suggesting to download the kernel sources via apt of your very same kernel and use them to build the module, so you could build the module alone without rebuilding the whole kernel and all the modules. But you need a stable armbian image to be sure you find the kernel sources in the apt repository.

 

note: I found that there is linux-source-5.8.12-current-rk322x package in armbian repositories. You may install it via apt and you will find the xz compressed sources in /usr/src directory. Decompress the file and do the compilation of the module the way you already did. If you're lucky it will compile, install and load·

Posted

Update.

Rufus Solved my issues with SD card . 

Now I'm trying to get the Unit boot and SD with no joy.

It does do well on Android.

I have tried to shorcut method (7th & 8Th pins of EMMC) no red led intense brightness . I'm pretty sure I'm shorting well ( Hardware is my thing ) 

My whole intention is to RUN a headless server using Armbian . 

I think I'll wait for another Boxes comming in. 

I do want to make these work  unless there is another suggestion . It is strange 4 of them do the same or I'm doing same mistake .

If I understood well :

  1. burn image.tool (using Rufus thanks to Maker39 )
  2. Insert in TVBOX until image.tool do this trick so I can go back to the PC and add the Image I need (meantime doesn't matter if it is Desktop Armbian)
  3. Issue is that Step 2 never Happens

Once again I do thanks all support received here . 

 

Zero48

Posted
  On 11/25/2020 at 11:07 PM, jock said:

But I see the version magic error, if you want to install the module for kernel 5.9.10 you must be running kernel 5.9.10, otherwise it will never load.

That's why I was suggesting to download the kernel sources via apt of your very same kernel and use them to build the module, so you could build the module alone without rebuilding the whole kernel and all the modules. But you need a stable armbian image to be sure you find the kernel sources in the apt repository.

 

note: I found that there is linux-source-5.8.12-current-rk322x package in armbian repositories. You may install it via apt and you will find the xz compressed sources in /usr/src directory. Decompress the file and do the compilation of the module the way you already did. If you're lucky it will compile, install and load·

Expand  

I thought it was pretty clear,

that I'm trying to build the module on the very same box, running the very same kernel version: 5.9.10-rk322x :lol:

And I was left with the impression,

that I need BOTH kernel headers AND sources to build it.

The initial install image is not that important, as long as it's stable enough to boot and operate normally, until I switch to another kernel - one, for which I can find BOTH headers & sources.

I guess I'll have to continue the struggle with other kernels...

Pitiy, because 5.9.10 is tempting as a current "bleeding edge". 5.9.11 is flagged as broken as of now...

 

Posted

@zero48

I would do like this:

1. through Rufus completely format SD by disabling "Quick format"

2. Write Multitool.img.xz .

After that, in Win, the card should be seen as 2GB FAT32 with some files, such as:

/backups

/bsp

/extlinux

/images

kernel.img

LICENSE

rk322x-box.dtb

3. Insert "Multitool" SD on box and PowerON.

Should be boot and repartition FAT32 for whole space.

 

p.s. Is there Android 10 in your box? Maybe there the bootloader somehow works differently?

Posted

@zero48

indeed the procedure that maker is suggesting you is correct and one of the best
And really the booting sequence of those boards allow the box to boot from internal, search if exist a trustos and uboot on the card and then boot from the card if valid things are found.
I guess android is working, or are you  trying to boot with shorten pins and/or android erased ? If yes please revert to ideal cndition of android in place and working
last question : have you sufficient skill to setup a uart converter to debug what is going on ? On that board solder a pl2303 is very easy

And please guys , when you receive support is a costless thing to just put a " like ( heart icon) " , not for vanity having as many likes is possible , but because this helps the reputations and reliability of users trying to help your efforts and also strengthens the sense of community and the purpose of a forum.
ty @Maker39
 

Posted
  On 11/26/2020 at 1:00 AM, zero48 said:

Update.

Rufus Solved my issues with SD card . 

Now I'm trying to get the Unit boot and SD with no joy.

It does do well on Android.

I have tried to shorcut method (7th & 8Th pins of EMMC) no red led intense brightness . I'm pretty sure I'm shorting well ( Hardware is my thing ) 

My whole intention is to RUN a headless server using Armbian . 

I think I'll wait for another Boxes comming in. 

I do want to make these work  unless there is another suggestion . It is strange 4 of them do the same or I'm doing same mistake .

If I understood well :

  1. burn image.tool (using Rufus thanks to Maker39 )
  2. Insert in TVBOX until image.tool do this trick so I can go back to the PC and add the Image I need (meantime doesn't matter if it is Desktop Armbian)
  3. Issue is that Step 2 never Happens

Once again I do thanks all support received here . 

 

Zero48

Expand  

 

I don't understand what's wrong with your setup, but did you decompress the multitool (that's its name), as suggested by @fabiobassa before burning on the sdcard? If you are burning the .xz archive as is it will certainly never work!

 

Also in Windows you must see the MULTITOOL FAT partition on the sdcard, otherwise you're doing it wrong.

 

Posted
  On 11/26/2020 at 8:10 AM, jock said:

 

I don't understand what's wrong with your setup, but did you decompress the multitool (that's its name), as suggested by @fabiobassa before burning on the sdcard? If you are burning the .xz archive as is it will certainly never work!

Expand  

Rufus does a great job with img.xz files. Checked more than once.

Posted
  On 11/26/2020 at 6:40 AM, Anung Un Rama said:

I thought it was pretty clear,

that I'm trying to build the module on the very same box, running the very same kernel version: 5.9.10-rk322x 

Expand  

I understand perfectly you're building the kernel on the box, that's what I suggested, but the armbian image you used is using kernel 5.8.12-rk322x

 

  On 11/26/2020 at 6:40 AM, Anung Un Rama said:

And I was left with the impression,

that I need BOTH kernel headers AND sources to build it.

Expand  

No, you need the kernel sources to build the whole kernel and the modules.

The kernel headers (which are a part of the kernel sources, of course) are needed only if you want to build external (out-of-tree) modules.

  On 11/26/2020 at 6:40 AM, Anung Un Rama said:

The initial install image is not that important, as long as it's stable enough to boot and operate normally, until I switch to another kernel - one, for which I can find BOTH headers & sources.

Expand  

The initial image IS important if you want apt repositories with kernel sources of your installed kernel

 

  On 11/26/2020 at 6:40 AM, Anung Un Rama said:

I guess I'll have to continue the struggle with other kernels...

Pitiy, because 5.9.10 is tempting as a current "bleeding edge". 5.9.11 is flagged as broken as of now...

Expand  

You need to follow the steps I suggested to you to build the whole kernel and the modules.

Your steps just built the single module you needed but the kernel version mismatch and won't ever work.

Posted
  On 11/26/2020 at 8:32 AM, jock said:

You need to follow the steps I suggested to you to build the whole kernel and the modules.

Your steps just built the single module you needed but the kernel version mismatch and won't ever work.

Expand  

Suspected that it have to be like that,

but hoped that I can avoid compiling the whole kernel...

Well, the struggle continues.

Thank you for the valuable tips! :beer:

Posted

@fabiobassaYes,it is.

 

@jockUnfortunately,both of the overlays was not working,Thanks anyway.I decompress and decompiled the dtb file from the offical firmware.

    wireless-wlan {
        compatible = "wlan-platdata";
        wifi_chip_type = "rtl8189es";
        sdio_vref = <0x708>;
        WIFI,poweren_gpio = <0x7a 0x1d 0x00>;
        WIFI,host_wake_irq = <0x73 0x02 0x00>;

i'm trying to compile the overlay by dtc,but got an error,maybe missing some header?

  Reveal hidden contents

 

rk-kernel.dtb rk-kernel.dts

Posted

bom dia,  

 

estou customizando uma distrinuicao pra tvbox. gostaria de uma dica:
preciso de um modelo de tvbox q tenha 4gb de RAM, cortex A53. qual modelo compro.

TX3?
TX9?

qual outro modelo?

desde ja agradeço!!

 

Flavio Lima

Posted
  On 11/26/2020 at 7:30 AM, Maker39 said:

@zero48

I would do like this:

1. through Rufus completely format SD by disabling "Quick format"

2. Write Multitool.img.xz .

After that, in Win, the card should be seen as 2GB FAT32 with some files, such as:

/backups

/bsp

/extlinux

/images

kernel.img

LICENSE

rk322x-box.dtb

3. Insert "Multitool" SD on box and PowerON.

Should be boot and repartition FAT32 for whole space.

 

p.s. Is there Android 10 in your box? Maybe there the bootloader somehow works differently?

Expand  

Hello, 

Yes there is Android 10 https://drive.google.com/file/d/1hzrI7SMuoQvoL4EDem782M7Fwfmfd5rQ/view?usp=sharing

 

I did format as noted by  @Maker39  here is the result https://drive.google.com/file/d/1ITbEydlF4zuthTCqdGCMp8d2EWH3exvp/view?usp=sharing (result same before and after Insert) 

 

However I did inset it and I dont see the image.tool but "not repartition FAT32 for whole space." 

 

  On 11/26/2020 at 8:08 AM, fabiobassa said:

I guess android is working, or are you  trying to boot with shorten pins and/or android erased ?

Expand  

I did try did not work for me . Right now the above test were done using the normal procedure ... Yes Android still in place (ver 10 btw) .

 

  On 11/26/2020 at 8:08 AM, fabiobassa said:

last question : have you sufficient skill to setup a uart converter to debug what is going on ? On that board solder a pl2303 is very easy

Expand  

Yes I can do , I been working hardware and Microcontrollers almost all my life. Tell me what to do and I'll get it done ... I do have PL2303, FTDI Putty ...

 

  On 11/26/2020 at 8:08 AM, fabiobassa said:

And please guys , when you receive support is a costless thing to just put a " like ( heart icon) " , not for vanity having as many likes is possible , but because this helps the reputations and reliability of users trying to help your efforts and also strengthens the sense of community and the purpose of a forum.
ty @Maker39

Expand  

Thanks for pointing this out , just new to this forum ... 

 

I hope the info provide help to eliminate some variables from the equation ...

when time is right let me know what to do with the TTL  (3v or 5v) ?

 

Thansk once again 

Posted
  On 11/26/2020 at 2:38 PM, Flávio Lima said:

bom dia,  

 

estou customizando uma distrinuicao pra tvbox. gostaria de uma dica:
preciso de um modelo de tvbox q tenha 4gb de RAM, cortex A53. qual modelo compro.

TX3?
TX9?

qual outro modelo?

desde ja agradeço!!

 

Flavio Lima

Expand  

 

@Flávio Lima,

 

Forum is in English.  Please use some online translation tool.

Posted (edited)

@Flávio Lima
 Bom Dia Flavio,
yes the forum is in english please be so kind to use that language.

Despite of this I understand a bit portoguese so for your question and as far as I know rk322x board DO NOT HAVE 4 gb ram, almost at actual time
the maximum I have seen is 2 giga
Usually shishion 5G have 2 giga of ram

 

Edited by fabiobassa
wrong user quoted
Posted

@zero48
perfet is a godness you have electronic skills
I suspect you have one fo the few, but very few hellish boards that use a particular trust os , so before attach any uart to ttl do this little test please:
copy this trust os into your card, you will need linux thought

 

SYNTAX is : dd if=/wheredoyouhavefile/trust-ddr2.img  of=/dev/thisisyoursdcard/ seek=24576

so if for example your sd is sdc and you have this file in /home/zero48 the whole syntax will be

 

dd if=/home/zero48/trust-ddr2.img of=/dev/sdc seek=24576  

of course you must unzip first the file
If this little test go wrong, well uart is our salvation :D

trust-ddr2.zipFetching info...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

Terms of Use - Privacy Policy - Guidelines