Power & Source of Big Ideas

According to the schematic, there are MOSFET drivers on this to switch the fan ON and OFF via GPIO2 which is also marked as PWM2 at the same time. Not sure if the kernel is already driving this as ON and OFF or PWM but it is possible to control the speed with this for a basic 5V powered fan if you h...
I've downloaded the GITLAB repository and built it first without any changes and it completed in a few hours. I am running Ubuntu 12.04 64 bit as legacy because I also have an older Android 5.1 version that doesn't build under higher versions of Ubuntu although 8 and 10 should build with a later ver...
My apologies, what I should have said was that it is not the PCI Express slot with the USB. It's an M.2 slot instead which is not the same as the card edge on the SIM7100E-PCIE module with different key position and that version has USB and SIM card connections. Use the SIM7100E-PCIE card with a USB...
The slot on the rear is not PCIE and it has no USB connection either. I used it via one of the USB ports and a PCIE module to USB convertor board. I've not yet seen Android 10 driver from SIMCOM and only managed to get this working with Android 8 although I have seen a number of websites offering An...
This is the partmap for Android 5.1 on the NanoPI3 boards. It works but the first entry seems to be too long and actually ends up 0x200 into the bootloader area. The start of 0x200 and length of 0x8e00 means that the end is 0x8200 and the bootloader starts at 0x8000. Older versions of this file are ...
The W500 has the same resolution as the old obsolete S430 LCD with 800x480 resolution. I have added the W500 timing and setup to the kernel and u-boot and the display is working but there are no home, back or recent apps buttons on the LCD display. There is only a blank space where they should be. A...
Anyone know where to get the Android 7.1 Google Apps to build into the OS ?
Looking at the schematic UART1 and UART2 are the only 2 available. UART0 is connected to the Ethernet port.

UART2 is the debug port but UART1 should be available via the GPIO header. What is the ownership on the /dev/tty ports?

Is there a ttySAC* port?
I have a custom Android 5.1 build and I can flash this to an older T3 Plus board and it runs. When I try to do the same on any newer board (I have 6 of them doing the same) it reports "Failed to load BL33" in the debug output. Both boards are marked with the same revision number. The only ...
At 155uA you should be able to get at least 50+ days out of the 240mA rated CR2032. In saying that, the standby current is still too high for an RTC in standby.

What ambient temperature is the device operating in?

PS. I used this calculator.
https://oregonembedded.com/batterycalc.htm
How much current do you need to draw for your external devices?

The schematic will have the IC that provides the 3.3V so you can check this and guess at the power available.

I would say that for anything more than 100mA you should use an external 3.3V regulator.
The best solution is to hook up a USB to TTL convertor and monitor the debug UART output. This will indicate where in the boot sequence things have gone wrong.
I have a T4 that has FriendlyDesktop installed on it and running my home automation system after moving over from a Raspberry PI that has done the duty for many years. The T4 is much faster for web interface. I have purchased an NVME M2 SSD with 128GB of storage and I would like to use that as the p...
Which OS are you using and do you have the drivers for the 8223A installed?
I need to update to the latest Android build and try running the eDP display again. I've not used it for some time with the HD702 displays. I a using the 11.6" E116 display and that is rock solid with the T4. No issues after running for hours.
The documentation for both can be studied to determine if the pins are the same. I suspect they are and the difference is in the board layout. In fact, looking at the wiki and doing a side by side comparison, the connections are identical.
Although FriendlyArm indicate open source, the only real open part is the schematics and software. To my knowledge, they have never released any PCB design files. You will basically have to create this yourself with your own PCB design suite from the schematics they provide. A daunting task. The rea...
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