Power & Source of Big Ideas

Which display are you doing to use with it? I have a T4 with HD702 and booting Android, it consumes up to 600mA during bootup. Once the desktop is present, is idles between 320ma and 400mA. I am measuring this with a 12V bench power supply with digital current display, GWInstek, model GPS3303. On an...
If you have a USB to TTL cable, hook it up to the debug port. It is the best way to see what is happening with your board during the boot sequence.
Under the source for the Android build, if you search for .ko do you find any files? There should be at least a file called mali_kbase.ko in /vendor/rockchip/common/gpu/MaliT860/lib/modules in the source tree. In the /vendor/rockchip/common/gpi directory there is a MaliT860.mk file and opening this ...
Can you explain in more detail what you did?

Is that an output error from the build or something esle?
Can you look in /vendor/lib/modules/wifi and see if the bcmdhd.ko file is present?

When I list that directory, I get these files. You mentioned before that the .ko files were not being built.

8188eu.ko 8189es.ko 8723bs.ko 8723cs.ko 8822be.ko
8188fu.ko 8189fs.ko 8723bu.ko 8723ds.ko bcmdhd.ko
Your log file is missing. Opening it shows com.apple.quarantine so suspect your computer has blocked this file.
The toggle switch not sliding means there was no physical hardware present. I see this on the NanoFire3 which has no WiFi chipset. We may have to dig deeper into the debug output. Another useful log to check and capture of the logcat. From the same terminal, type in logcat and it will spit out the f...
I had a look at your log file and I saw the same on my build. I am using the exact same source as you with only minor changes to remove the desktop icons and change the init.rc to make GPIO user space access. The attached debug output shows what I see when I activate wifi on the T4 (this has the sam...
They all have 0660 as the file permissions which means no access from user space. There are 2 ways to get around this. One way is to modify the source, add the permissions in the init.rc file and rebuild it. This has security issues but for embedded devices, this won't normally be a concern. This is...
You're welcome. Glad you got it working.

One of the things I did for a custom build was to remove the icons from the desktop and all add on demo software from FA.

I also added a custom boot image and bootanimation file.

Good luck with it.
After the FriendyElec logo, does it go blank?

This happens for about 30 seconds on my machine and the debug shows some kind of network search. After this the FA interface appears and you can select the OS to install.
What does the debug output look like? Very strange. I've been building Android 5.1 for the NanoPC T3 Plus and now Android 8.1 for NanoPC T4 and not had any boot issues unless I screw up the build. If you are just compiling the source without any changes, it should just work. What are you using for d...
The NanoPC-T2 is a 32 bit build. The M4 needs a 64 bit build so probably explains why it fails to boot.

Did you clone the correct repository?

https://gitlab.com/friendlyelec/rk3399-android-8.1 --depth 1 -b master
Just a thought. These boards are sold for development and you get the source code for them so why not compile in the CEC support that you need? I've spent many weeks in doing that very thing with Android to add GPIO, I2C and SPI without needing access to the platform keys. I am not there with SPI as...
Information is in the Wiki for the T4. Here is the direct link. It is in Chinese so use Google Translate. http://wiki.friendlyarm.com/wiki/index.php/Modify_T4_PWRON You need a 300K 0402 resistor and a 1uF/16V 0603 capacitor. I hope your eyesight is good and you have a small tip soldering iron as tho...
As per my other post on this, the only way to flash the eMMC is via SD card.

http://wiki.friendlyarm.com/wiki/index. ... ge_to_eMMC

It works fine. I do it on a daily basis when I am developing the Android OS.
Did you copy the files to the android7 or android8 directory in the FriendlyArm partition? Do you have a serial debug cable? That will make testing a lot easier as you will see the boot process and why it is failing. Without this cable, you are totally blind. Even if the image in the directory is wr...
I have rebuilt the OS to change the GPIO header to use SPI1 instead of UART4. The device shows up in /dev/spidev1/0 and I can open and close it, send ioctl commands to configure it, but I cannot get it to accept writes. I get the following error in the debug terminal. rockchip-spi ff1d0000.spi: spi ...
Pretty much although the build system for 8.1 is really nice with the kernel and u-boot all included in the same directory and a very nice build script to deal with it. You can build u-boot and the kernel first and then Android. The script takes care of copying each kernel and u-boot images to the c...
OK. Assuming you are using Android 8.1 build, locate the eflasher in the download and write this to your SD card. It will create 2 partitions and one will be named FriendlyArm and have an android8 directory. Follow the instructons on the wiki. All the information on how to make the SD is there. 13.3...
Copy the final build outputs to the SD card. For Android 8.1, they go in the android8 directory. Just overwrite the old files. Inserted into your board and power up. It will flash to the emmc. Then shutdown and reboot without the SD card. All the information to build the Android source is under the ...
Just a quick update. I found the following would list what each GPIO was currently being used by: cat /sys/kernel/debug/gpio gave this: gpio-35 ( |camsys_gpio ) out hi Seems that the camera is using this GPIO which seems a bit strange as that pin is not connected to any of the camera connectors, onl...
When I use the SD card to flash the emmc, the SD card contains an Ubuntu OS that has a special program from FA that runs, and then you can see on screen what is happening. It should boot with an interface. The FA logo should appear at initial boot. The LED will flash faster when the OS is being writ...
Follow this to use create an SD that you can write to the emmc. This can also be used to flash your own custom Android builds.

http://wiki.friendlyarm.com/wiki/index. ... nd_SD_card
I can't get code to export the GPIO1_A3 pin on the T4. GPIO1A1 and GPIO1_A4 exports without any errors. In fact, all of the other GPIO pins on the header can be exported. I tried from the terminal in kernel space with SU but still doesn't export. The schematic for the T4 shows that GPIO1_A3 only con...
I want to be able to add additional external storage to the T4 but when I plug in a blank SD card with FAT32 format, the system fails to boot.

How can we add SD card storage to the T4?
The only difference is the USB to SERIAL IC used. The CH340G is what FriendlyArm use on their own boards but any of those will work for you. Just be sure to have the correct driver installed for you OS.
Do you have TTL to USB serial adapter?

Seriously, this should be top of the list of haves for anyone working with modules such as this. It will give you much more information about what is happening during the boot cycle etc.
Hi Tom, I've not used any resistive driver with Android but I do know for usre that you do need to calibrate them to get the correct coordinates to map screen to touch panel. The ADS7846 is a resistive driver with SPI interface and you might find a driver for this in the kernel. Might be worth seein...
I have 2 of them and the LCD is bonded to the PCB with some kind of double sided tape. Unless it can be removed, it would be impossible to see if there are any other indications on the LCD panel itself. The technical drawing of the LCD has had the manufacturer details blurred out. :( I would add tha...
I've created a 3D model of the NanoPC-T4 and put it up on GrabCAD if anyone is looking for something like this. It's not dimensionally accurate as I had to find 3D parts for the connectors and they are not the exact ones but the PCB and the holes are accurate. It should be good enough to help if you...
I shuuld that I set the Realtek as the wifi vendor in wfi_bt_config.mk

Code: Select all

#BOARD_WIFI_VENDOR := ap6212
BOARD_WIFI_VENDOR := realtek
BOARD_BLUETOOTH_VENDOR := broadcom
Android 7.1 source has an option to build with the Realtek RTL8xxxxu driver which supports the RTL8192CU wifi USB module but I am not able to get this to work. I get the following error in the debug output. [ 113.926666] usb 2-1.3: new high-speed USB device number 4 using exynos-ehci [ 114.023333] u...
Turns out that the latest SD card format uses exfat for the eflasher and although this can be used to flash Android 5.1 to the emmc, it can't be detected by Android.

Installing an SD card with fat32 format works fine.
You should be able to just use a suitable SD eflasher image to re-program the emmc.

Flash an SD card with the correct eflasher image and then boot from this to reprogramme the emmc.
I have 2 NanoPC-T4 and I used eflasher from the SD card to program the emmc. Works without fail. I used Win32DiskImager to create the SD card from the image downloaded from the FA website. I've installed Ubuntu as a test but currently using Android 8.1 on them. You u-boot shows that it can't find th...
mrigendra wrote:
3. uart (115200 bps) shows garbage


This generally happens when you don't have a ground connection. Double check for this.

It should be 115200, 8, NONE, 1
I used the latest SDflasher to programme the emmc of the Nano PC T3 Plus with my custom Android build which has been working for a couple of years now. The latest boards I received from FA did not detect the SD card. I found today that when I try to mount them, the following error appears on the deb...
I use a JNI to do this. Here is the serial port file for you to see how it's done. /* * Copyright 2009-2011 Cedric Priscal * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the L...
I am trying to debug a SPI application but think there might be an issue in libfriendlyarm-things.so. Where is the source for libfriendlyarm-things.so? That library is not open source. I have GPIO and I2C working using a JNI. I've not needed SPI but I did find this Android SPI code you might be abl...
Glad to hear it. It's just going to take time. I am getting PCB's made just now and normally 3-4 days, but now on 7th day and still not shipped. It was expected but I am grateful to the Chinese people for slowly getting things back up and working. It's a tough call. It could be a lot worse.
My recent order of Nano PC T3 Plus boards has come preloaded with Android 7.0 and I am trying to put Android 5.1 but getting boot issues and kernel panics. I used the latest eflasher for Android for Lollipop from 27 Dec 2019 and it boots into Android 5.1 but has portrait mode. My custom build runs i...
The date notification disappeared the other day so they may be back to work in a limited way with less workforce. The same with other Chinese based companies that I use. They may be overwhelmed with orders placed during the initial Chinese New year and loads of emails so you'll probably have to give...
PS. I see you posted this in the RK3399 forum so let's work on this for the T4 or other boards based on this processor.
Not much from FA. They have done a few upgrades and it would be nice if they could write up a wiki page on what is required to create a version upgrade. ;) I have been looking at how to jump to Android 9 and have 5.1 and 7.0 source so I was trying to figure out how to do this. The first part I think...
To get this to work, you need to make sure you select the correct SPI interface. Next up is working out the GPIO and changing the source to map it to the RK3399. The WiFi has a good section on how to deal with mapping GPIO names to GPIO pins. The Raspberry PI is for the Broadcom processor and hence ...
Everything looks good in the output.

I see you are running Android on this.

If you have a PC running Ubuntu, it is quite easy to build your own custom OS and get rid of the stuff you don't need. All depends on what you are wanting to use it for.
When you connect to the board, do you just connect GND, RX and TX?

You don't need the 5V connection as your board is powered elsewhere. Better to leave this disconnected to avoid shorting power supplies.
It all sounds like a ground issue. I assume you are using a 3.3V TTL serial interface to connect to the debug port?