Tiny Core Linux

Tiny Core Base => Other architectures => Topic started by: jgrulich on October 05, 2016, 12:19:49 AM

Title: piCore for the H3 boards - Orange Pi, Nano Pi etc.
Post by: jgrulich on October 05, 2016, 12:19:49 AM
Here is the piCore 8.0 test image for the H3 boards, means Orange Pi PC, One, or Nanopi M1, Neo, etc.
https://dl.dropboxusercontent.com/u/86461636/piCore8.0_h3.7z

There is used DVI mode 1280x720 60Hz. If you need to change it use the h3disp tool.
The IP is fixed 192.168.1.30, no dhcp.
SSH: tc/piCore.
The audio is HDMI, or I2S via the raspidac3 audio card.
Title: Re: piCore for the H3 boards - Orange Pi, Nano Pi etc.
Post by: m00rg on October 06, 2016, 12:23:00 PM
Brilliant, thank you! I've had my OrangePi PC for approx a year and have had it on my todo list.
I finally got my customised PiCore working yesterday, but it is extremely useful to have a vanilla image.

Thank you!
Pete
Title: Re: piCore for the H3 boards - Orange Pi, Nano Pi etc.
Post by: nxtv2.0 on October 06, 2016, 11:15:27 PM
How do i install This port on the built-in eMMC flash in the Orange Pi Plus 2E?

Thanks in advance.
Title: Re: piCore for the H3 boards - Orange Pi, Nano Pi etc.
Post by: jgrulich on October 07, 2016, 12:17:08 PM
Sorry, don't have the Pi Plus to test it, but guess that you may use some of the regular tools from the OPi set to do so.
For example this one from Loboris:
https://github.com/loboris/OrangePi-BuildLinux/blob/master/install_to_emmc
or this official Sunxi one from the OPi pages:
http://www.orangepi.org/orangepibbsen/forum.php?mod=viewthread&tid=227

Regards,

Jan
Title: Re: piCore for the H3 boards - Orange Pi, Nano Pi etc.
Post by: jgrulich on October 07, 2016, 01:54:07 PM
Hi Pete,

which customized kernel do you made? Do you have video and audio working?

Regards,

Jan
Title: Re: piCore for the H3 boards - Orange Pi, Nano Pi etc.
Post by: nxtv2.0 on October 07, 2016, 08:45:30 PM
There are python libraries for the raspberry pi that use its dma channels to output pwm on any pin chosen?
How do i get PWM out of the allwinner h3 in this port?
In the allwinner h3 datasheet it says "12 dma channels" .

thanks in advance.
Title: Re: piCore for the H3 boards - Orange Pi, Nano Pi etc.
Post by: m00rg on October 09, 2016, 12:59:07 PM
Hi Pete,
which customized kernel do you made? Do you have video and audio working?
Regards,
Jan

Sadly it's not a customised one; I'm just using a stock one from the dietPi OrangePi image.
It's got all the modules we need for a base TinyCore install (although not ramdisk compression) and has a good number of sound drivers, but I haven't found the source it's compiled from.

It's a shame the stock kernel doesn't have HDMI working; I have a 4.6 image ready to test (I just haven't got around to it) but no HDMI is a showstopper for me. I've been wanting to do a PREEMPT_RT kernel and also use an i2s soundcard that there is no module for..
Title: Re: piCore for the H3 boards - Orange Pi, Nano Pi etc.
Post by: nxtv2.0 on October 09, 2016, 07:42:10 PM
How do i use i2c and spi controllers inside the allwinner h3 in this port??

Thanks in Advance.
Title: Re: piCore for the H3 boards - Orange Pi, Nano Pi etc.
Post by: jgrulich on October 10, 2016, 10:32:14 AM
@m00rg:
Yes, may be, you may use several kernels from different distros, but I'm using source of the 3.4.112 distro with all its patches to get it working with the zswap, video, HDMI, w1, I2S etc.

The mainline kernel doesn't support video, audio etc. and it will take a long time to change it, because nobody is working on it now. Means that it's suitable mainly for the server and headless applications like a IoT etc. The Nanopi Neo is the best choice for it.
Title: Re: piCore for the H3 boards - Orange Pi, Nano Pi etc.
Post by: jgrulich on October 10, 2016, 10:36:16 AM
@nxtv2.0:
There is working I2C #0 at the regular I2C pins and I2C #1 at the HAT I2C pins.
The SPI #0 is working on it's regular pins 19,21,23.
Title: Re: piCore for the H3 boards - Orange Pi, Nano Pi etc.
Post by: nxtv2.0 on October 11, 2016, 08:04:40 AM
I got my orange pi plus 2e today and flashed the image.img file using win32diskimager on a micro sd card, but when i boot the pi with ethernet connected to a router it doesn't boot.
the ethernet lights never come on and the main light goes first red while blinking green then full green and thats it.

What is wrong?
Thanks in advance.
Title: Re: piCore for the H3 boards - Orange Pi, Nano Pi etc.
Post by: jgrulich on October 11, 2016, 01:34:15 PM
OPi Plus 2 has gigabit ethernet with Realtek which is not supported yet. Sorry, don't have the board in hands to test it.
Title: Re: piCore for the H3 boards - Orange Pi, Nano Pi etc.
Post by: nxtv2.0 on October 11, 2016, 10:37:18 PM
Can you try to support it and send my the test images?

thanks in advance.
Title: Re: piCore for the H3 boards - Orange Pi, Nano Pi etc.
Post by: jgrulich on October 12, 2016, 12:15:00 PM
Try this kernel:
https://dl.dropboxusercontent.com/u/86461636/zImage

I've enabled all the gmac I've found around.

Regards,

Jan
Title: Re: piCore for the H3 boards - Orange Pi, Nano Pi etc.
Post by: nxtv2.0 on October 12, 2016, 06:13:41 PM
Thank you,will try it and report back.
Title: Re: piCore for the H3 boards - Orange Pi, Nano Pi etc.
Post by: nxtv2.0 on October 13, 2016, 04:22:44 PM
Didn't work same as before :-\
Title: Re: piCore for the H3 boards - Orange Pi, Nano Pi etc.
Post by: nxtv2.0 on October 13, 2016, 04:23:32 PM
Didn't work ,same as before.
Title: Re: piCore for the H3 boards - Orange Pi, Nano Pi etc.
Post by: nxtv2.0 on October 14, 2016, 04:56:34 AM
Didn't work.
same as before.
Title: Re: piCore for the H3 boards - Orange Pi, Nano Pi etc.
Post by: jgrulich on October 16, 2016, 03:20:41 AM
Sorry, don't have the board to test with.
Title: Re: piCore for the H3 boards - Orange Pi, Nano Pi etc.
Post by: nxtv2.0 on October 16, 2016, 08:39:54 AM
Sorry for posting multible times, was an accident.

What is needed to support the giagbit controller?
I xan help you develop one , any image you want me to test i will accept.
Title: Re: piCore for the H3 boards - Orange Pi, Nano Pi etc.
Post by: jgrulich on October 16, 2016, 09:34:40 AM
Use the steps as I've described in you post:
http://forum.tinycorelinux.net/index.php/topic,20426.msg127344.html#msg127344

That's the fastest way, because than you have something working at the beginning and you may revert steps it it stop working.
The opposite way, means to use try / fail method is quite time consuming because you test it as a blind men.
Title: Re: piCore for the H3 boards - Orange Pi, Nano Pi etc.
Post by: jgrulich on October 16, 2016, 09:52:42 AM
Install this distro: http://www.armbian.com/orange-pi-plus-2e/
and post the dmesg with the ethernet info.
I have the source files for the 3.4.112 kernel and therefor may use it for our purpose easily.
Title: Re: piCore for the H3 boards - Orange Pi, Nano Pi etc.
Post by: nxtv2.0 on October 16, 2016, 06:36:12 PM
Ok i was allready using armbian .
will post shortly.
Title: Re: piCore for the H3 boards - Orange Pi, Nano Pi etc.
Post by: nxtv2.0 on October 16, 2016, 10:06:32 PM
Command i used:
Code: [Select]
dmesg > log.txtLink to File:
https://drive.google.com/file/d/0BxEtx0o2OWjmTHJfX1pvLTQ4djA/view?usp=drivesdk (https://drive.google.com/file/d/0BxEtx0o2OWjmTHJfX1pvLTQ4djA/view?usp=drivesdk)
Hope it helps,if you need anything else just say.

Thanks.
Title: Re: piCore for the H3 boards - Orange Pi, Nano Pi etc.
Post by: jgrulich on October 17, 2016, 04:21:59 AM
Strange, it uses the same gmac0 as for internal 100MB port.
Please test my version and post the dmesg to see the error messages about the gmac.
Title: Re: piCore for the H3 boards - Orange Pi, Nano Pi etc.
Post by: jgrulich on October 17, 2016, 05:15:26 AM
Maybe I got it,

use the kernel,I've sent last time, and overwrite the script.bin:
https://dl.dropboxusercontent.com/u/86461636/script.bin

Regards,

Jan

Title: Re: piCore for the H3 boards - Orange Pi, Nano Pi etc.
Post by: nxtv2.0 on October 17, 2016, 07:43:22 AM
I can't find the image on my pc and the dropbox link is broken.
Title: Re: piCore for the H3 boards - Orange Pi, Nano Pi etc.
Post by: nxtv2.0 on October 17, 2016, 07:44:36 AM
I mean the kernel no the image.
Title: Re: piCore for the H3 boards - Orange Pi, Nano Pi etc.
Post by: nxtv2.0 on October 17, 2016, 08:17:02 AM
And please add a script that automatically saves the output of dmesg to a file in the fat32 partition because i can't access the pi without ethernet working. 
Title: Re: piCore for the H3 boards - Orange Pi, Nano Pi etc.
Post by: jgrulich on October 17, 2016, 10:52:49 AM
Once more the link to the zImage and script.bin:
https://dl.dropboxusercontent.com/u/86461636/zImage
https://dl.dropboxusercontent.com/u/86461636/script.bin

To save the dmesg:
Code: (bash) [Select]
mount /mnt/mmcblk0p1
sudo dmesg > /mnt/mmcblk0p1/log.txt
Title: Re: piCore for the H3 boards - Orange Pi, Nano Pi etc.
Post by: nxtv2.0 on October 17, 2016, 02:50:33 PM
How do i enter those commands , the ethernet isn't working.
Title: Re: piCore for the H3 boards - Orange Pi, Nano Pi etc.
Post by: jgrulich on October 18, 2016, 01:50:17 AM
Use the serial debug console and copy the output via the clipboard.
Title: Re: piCore for the H3 boards - Orange Pi, Nano Pi etc.
Post by: nxtv2.0 on October 18, 2016, 05:58:09 AM
I dont have a serial reader currently.
Can't you include a start-up script to log the dmesg to the fat32 partition?

sorry for inconvienice.
Title: Re: piCore for the H3 boards - Orange Pi, Nano Pi etc.
Post by: jgrulich on October 18, 2016, 06:02:06 AM
Than use the keyboard and monitor to interface with.
I've modified the script bin to work with the HDMI-DVI interface, means that you may use any old-fashioned monitor, even with the 3:4 ratio as I'm using.
Title: Re: piCore for the H3 boards - Orange Pi, Nano Pi etc.
Post by: jgrulich on October 18, 2016, 09:57:52 AM
If Armbian is working well, I've used it's kernel with adopted related files.
Try to replace these files on the SD card:
https://dl.dropboxusercontent.com/u/86461636/Rev2/boot.scr
https://dl.dropboxusercontent.com/u/86461636/Rev2/script.bin
https://dl.dropboxusercontent.com/u/86461636/Rev2/zImage
Title: Re: piCore for the H3 boards - Orange Pi, Nano Pi etc.
Post by: nxtv2.0 on October 18, 2016, 10:19:27 AM
Link to log file using last upload.
https://drive.google.com/open?id=0BxEtx0o2OWjmTHJfX1pvLTQ4djA (https://drive.google.com/open?id=0BxEtx0o2OWjmTHJfX1pvLTQ4djA)
Going to replace the files you sent now and report back.
Title: Re: piCore for the H3 boards - Orange Pi, Nano Pi etc.
Post by: nxtv2.0 on October 18, 2016, 10:28:48 AM
Finally it worked!
https://drive.google.com/open?id=0BxEtx0o2OWjmc3ZrSmxwQ0t2MGs (https://drive.google.com/open?id=0BxEtx0o2OWjmc3ZrSmxwQ0t2MGs)
There was a lot of errors.
How do decrease boot time i don't need anything except usb and gigabit ethernet as i will be running Virtualhere usb server.

Thanks for your help.
Title: Re: piCore for the H3 boards - Orange Pi, Nano Pi etc.
Post by: jgrulich on October 18, 2016, 11:28:13 AM
What you don't need, simply remove it, or comment out in the onboot.lst.
Guess you need only openssh.tcz, or even not this if you don't need the SSH remote control.
Depend what services you need to be running on the server.
Title: Re: piCore for the H3 boards - Orange Pi, Nano Pi etc.
Post by: jgrulich on October 18, 2016, 11:48:27 AM
Please copy my zImage back again to identify if it is in this file, or in the boot.scr file.
Title: Re: piCore for the H3 boards - Orange Pi, Nano Pi etc.
Post by: nxtv2.0 on October 18, 2016, 12:38:28 PM
I used both the zimage and the boot.scr.
Title: Re: piCore for the H3 boards - Orange Pi, Nano Pi etc.
Post by: nxtv2.0 on October 18, 2016, 01:09:57 PM
I now tried burning the img file using the dd command to eMMC while running linux on the sd card but it didn't boot so how do i boot from eMMC?
Title: Re: piCore for the H3 boards - Orange Pi, Nano Pi etc.
Post by: nxtv2.0 on October 18, 2016, 01:20:13 PM
And can you review the log.txt and see what makes all those errors
Title: Re: piCore for the H3 boards - Orange Pi, Nano Pi etc.
Post by: jgrulich on October 19, 2016, 12:27:16 AM
Understand that you used all three files from Rev2 folder, but I need to test all the  zImage files, including:
https://dl.dropboxusercontent.com/u/86461636/Rev1/zImage
https://dl.dropboxusercontent.com/u/86461636/zImage
Title: Re: piCore for the H3 boards - Orange Pi, Nano Pi etc.
Post by: jgrulich on October 19, 2016, 12:34:59 AM
Which errors you mean? I don't see any, only some warning related to the not used modules and HW.
Title: Re: piCore for the H3 boards - Orange Pi, Nano Pi etc.
Post by: jgrulich on October 19, 2016, 01:00:08 AM
Have you tried the eMMC with the Armbian? If no, please try and report the working procedure.
Title: Re: piCore for the H3 boards - Orange Pi, Nano Pi etc.
Post by: jgrulich on October 19, 2016, 01:03:58 AM
The only way how to get the system messages during boot is to use the serial debug console, please find some COM, or USB one and connect to the board.
Title: Re: piCore for the H3 boards - Orange Pi, Nano Pi etc.
Post by: jgrulich on October 19, 2016, 01:12:26 AM
How did you wrote the bootloader to the eMMC? Which one you've used?
Title: Re: piCore for the H3 boards - Orange Pi, Nano Pi etc.
Post by: nxtv2.0 on October 19, 2016, 07:43:04 AM
Ok i will try all zimage files i see.
I used the eMMC with armbian and it worked flawlessly, using the nand-sata-install command.
i just wrote the image.img file to the eMMC using dd as if it was just a micro-sd card
Title: Re: piCore for the H3 boards - Orange Pi, Nano Pi etc.
Post by: nxtv2.0 on October 19, 2016, 08:06:59 AM
Understand that you used all three files from Rev2 folder, but I need to test all the  zImage files, including:
https://dl.dropboxusercontent.com/u/86461636/Rev1/zImage
https://dl.dropboxusercontent.com/u/86461636/zImage
Both don't work.
Title: Re: piCore for the H3 boards - Orange Pi, Nano Pi etc.
Post by: nxtv2.0 on October 19, 2016, 09:24:24 AM
Can you please list the commands needed to install piCore to eMMC as i can't install it myself and am a complete noob.
Title: Re: piCore for the H3 boards - Orange Pi, Nano Pi etc.
Post by: jgrulich on October 19, 2016, 09:37:44 AM
Open the nand-sata-install.sh file form Armbian and look whole the installing process, it's well commented there.
Than you may modify it to work for you.
Title: Re: piCore for the H3 boards - Orange Pi, Nano Pi etc.
Post by: nxtv2.0 on October 19, 2016, 09:58:54 AM
I tried , didn't understand anything from it.
what modifications do i need?
Title: Re: piCore for the H3 boards - Orange Pi, Nano Pi etc.
Post by: bzfrp on October 20, 2016, 01:26:18 PM
Hello jgrulich,
Great. I have a NanoPi NEO running Armbian with kernel 4.7 (my UPnP audio player, usb out). What are the commands for unpack and pack the piCore uInitrd ?
Thanks.
Title: Re: piCore for the H3 boards - Orange Pi, Nano Pi etc.
Post by: jgrulich on October 20, 2016, 02:48:52 PM
I have piCore 8.0 with the 4.8.0-rc5 which works well for headless server applications.
To generate the image files like a uInitrd, uImage, etc. I'm using the mkimage utility.
Title: Re: piCore for the H3 boards - Orange Pi, Nano Pi etc.
Post by: bzfrp on October 20, 2016, 03:12:27 PM
But how to "unpack piCore initrd in a temp directory" ? (see initrd section in http://forum.tinycorelinux.net/index.php/topic,17895.0.html )
Could you place the link of your piCore 8.0 with the 4.8.0-rc5 image ?
Thanks.
Title: Re: piCore for the H3 boards - Orange Pi, Nano Pi etc.
Post by: bzfrp on October 20, 2016, 07:19:37 PM
But how to "unpack piCore initrd in a temp directory" ? (see initrd section in http://forum.tinycorelinux.net/index.php/topic,17895.0.html )
I found a solution: http://h-wrt.com/en/mini-how-to/uInitrd
Title: Re: piCore for the H3 boards - Orange Pi, Nano Pi etc.
Post by: jgrulich on October 21, 2016, 12:00:26 AM
Why to do it so complicated? Everything is nicely written in the Corebook:
http://tinycorelinux.net/book.html
When you don't know how to, than look there as a first resort.
Title: Re: piCore for the H3 boards - Orange Pi, Nano Pi etc.
Post by: bzfrp on October 21, 2016, 03:51:21 AM
I didn't find uInitrd, mkimage and uboot in the Corebook. Where the Corebook explain how to unpack uInitrd ? Thanks.
Title: Re: piCore for the H3 boards - Orange Pi, Nano Pi etc.
Post by: bzfrp on October 21, 2016, 10:42:31 AM
Thanks. I begin to understand. It is in chapter 11 of the Corebook.
initramfs is 8.0v7.gz and kernel is kernel4420v7.img
Title: Re: piCore for the H3 boards - Orange Pi, Nano Pi etc.
Post by: nxtv2.0 on October 21, 2016, 03:25:07 PM
Ok i got piCore working from eMMC ,
I flashed image.img(i modified your's and added the rev2 files you sent for ethernet) to eMMC using dd command in armbian running on sd card, and then flashed the bootloader .bin file in armbian, this post explaines the bootloader part i did post #8.http://forum.armbian.com/index.php/topic/1070-install-to-emmc/ (http://forum.armbian.com/index.php/topic/1070-install-to-emmc/)

It booted with a lot of errors, how do i fix them, i need to speed up boot.
Link to log file (dmesg)https://drive.google.com/open?id=0BxEtx0o2OWjmbzFiSWlQQWVOUm8 (https://drive.google.com/open?id=0BxEtx0o2OWjmbzFiSWlQQWVOUm8)

Thanks for your hard work.
Title: Re: piCore for the H3 boards - Orange Pi, Nano Pi etc.
Post by: jgrulich on December 15, 2016, 01:38:14 AM
Good news. I've ported the piCore on the new Orange Pi Zero. Non with the 3.4.113 kernel.
The board works well, the idle consumption is 100mA@240MHz, the peak full speed consumption is 240mA@1,2GHz.
Compared with RPi3, the boot time is twice, but than the speed is comparable.
The on board wifi is working too, but not as good as the external Realtek based one. Seems that there are still some issues with the wifi driver and need tweak.
Title: Re: piCore for the H3 boards - Orange Pi, Nano Pi etc.
Post by: SlowBro on May 12, 2017, 04:15:47 PM
Newbie question: How would I install it to the OPi Zero; any differences from other boards?
Title: Re: piCore for the H3 boards - Orange Pi, Nano Pi etc.
Post by: SlowBro on July 17, 2017, 02:24:02 AM
So... is tiny a dead end on the OPi Zero? I've been looking for something, anything, how to install it.
Title: Re: piCore for the H3 boards - Orange Pi, Nano Pi etc.
Post by: Murky on August 05, 2017, 04:47:23 PM
This link no exist more.
https://dl.dropboxusercontent.com/u/86461636/piCore8.0_h3.7z
please upload again.
Title: Re: piCore for the H3 boards - Orange Pi, Nano Pi etc.
Post by: Garik1303 on April 12, 2018, 08:29:00 AM
What about this port  :o ? Who can throw it  :-\ ?
Title: Re: piCore for the H3 boards - Orange Pi, Nano Pi etc.
Post by: Garik1303 on April 14, 2018, 10:04:17 AM
No one left this distribution?  :( :( :(

Throw off if someone left it please!  :-\ :-\ :-\
Title: Re: piCore for the H3 boards - Orange Pi, Nano Pi etc.
Post by: PDP-8 on April 14, 2018, 01:12:16 PM
I think your best bet is to install Armbian, and use those resources listed in this thread.

While you could try and emulate piCore, you might even try getting familiar with how dCore works and starting from there.  I suppose you could track the debian/ubuntu kernels offered up by Armbian rather than debian/ubuntu directly.  Might make it easier.  Many possibilities.

If you are only doing shell stuff, a real easy option is to install Armbian, and install and track the version of BusyBox that *core uses.  Ie, download 1.27.2 of busybox (as of today, later versions are also available), do a make defconfig for busybox in Armbian, install it, and create the necessary symlinks (see the BB faq), and put it first in your path. 

That's what I'm doing with my LePotato board until I get the necessary skills to transform it in a dCore-like version.
 
Title: Re: piCore for the H3 boards - Orange Pi, Nano Pi etc.
Post by: Garik1303 on April 14, 2018, 11:35:01 PM
Many thanks for the advice
Title: Re: piCore for the H3 boards - Orange Pi, Nano Pi etc.
Post by: happy_sky on May 21, 2018, 04:51:37 AM
https://dl.dropboxusercontent.com/u/86461636/piCore8.0_h3.7z
This file has not existed !
Who have it ?
Please upload again !
Thanks a lot !