4 4
TonyMac32

Lichee Pi zero

Recommended Posts

On 5/5/2019 at 11:55 AM, guidol said:

I do like the small 23MB footprint of this small Linux (would like to see such Linux on a Router which normally do use OpenWRT - many of them have 128MB RAM, but less Mhz)

 

Don't go there - OpenWRT can be very efficient, but it's not a full flavored desktop class linux... and MHz doesn't matter as much as one would think with MCU's in this class - start pushing packets through the platform, and there's where OpenWRT starts to show it's strength.

 

Share this post


Link to post
Share on other sites
46 minutes ago, sfx2000 said:

OpenWRT can be very efficient, but it's not a full flavored desktop class linux... 

In dont like OpenWRT :( I have started many times with different devices to use OpenWRT, but mostly after 1 day or 2 I did put it aside, because sometimes the device isnt available anymore in the network after a network-configuration or the packets I want to use do not work on this device.
debian on the LicheePi is only a "pre-version" but does work for me much better than any OpenWRT I used in the past.

 

In the last years OpenWRT is getting better, but isnt working - for me - not as good as any real linux.

Thats sad, because for small devices it would be great.

The other bas thing is that many OpenWRT devices does cost now - as some Allwinner or RPi devices are now very cheap - more than a linux-system.

 

So OpenWRT is for me only a option if you net it as an router/network-device.

Share this post


Link to post
Share on other sites
18 hours ago, guidol said:

In dont like OpenWRT :( I have started many times with different devices to use OpenWRT, but mostly after 1 day or 2 I did put it aside, because sometimes the device isnt available anymore in the network after a network-configuration or the packets I want to use do not work on this device.
debian on the LicheePi is only a "pre-version" but does work for me much better than any OpenWRT I used in the past.

 

Different strokes maybe - I like it because they do tend to keep current within the platforms they support, and onboarding a new platform is fairly straight forward - and sometimes less work than going from metal to buildroot and then to yocto...

 

18 hours ago, guidol said:

In the last years OpenWRT is getting better, but isnt working - for me - not as good as any real linux.

Thats sad, because for small devices it would be great.

 

Please don't throw stones at another distro, it's bad form - OpenWRT is as much of a "real linux" as any other distro, different focus perhaps, and one tightly focused towards networking and wireless (not just WiFi these days).

 

18 hours ago, guidol said:

The other bas thing is that many OpenWRT devices does cost now - as some Allwinner or RPi devices are now very cheap - more than a linux-system.

 

So OpenWRT is for me only a option if you net it as an router/network-device.

 

Fair enough - but cross platform support for MIPS/ARM/x86 counts for a lot - and it is considered more of an embedded linux platform...

 

QC-Atheros IPQ4019 is a Quad A7, similar to AllWinner H3, and does nicely in 128MB RAM/32MB SPI-NOR, and has a working dual-band WiFi5 (802.11ac AC1200 class) stack, and plenty of bandwidth - and a working VPN platform (including Wireguard) - I don't recall Armbian actually having a working UBI/UBIFS over MTD on NAND or NOR flash, and recent experience with EspressoBIN, OpenWRT seems to have a better solution with networking and system stability.

 

I've spent the last 10 weeks on OpenWRT with a MIPS24Kc based platform on a fairly small footprint (64/16) - again, my image is about 7MB, give or take, and I use about 28MB of RAM (some of that is due to glib2, which is a real pig, but it offers a lot in exchange) - during that time, I've had to dive deep into the internals, including their toolchain, etc, and I've come to respect much of what the OpenWRT/LEDE team has accomplished. It's allowed me to focus on what's important with the project, and they've sorted out 90 percent of things that I don't need to worry about.

 

Anyways - 64MB, with Embedded Linux, is more than enough space to get a decent performing platform...

 

Something like an "Armbian Lite" - with Busybox, maybe a smaller C Library like MUSL, and a stripped down kernel - almost sounds like Alpine Linux, wouldn't you agree?

Share this post


Link to post
Share on other sites

Hi guys! 

 

I've been following this thread for the past few days now.

Since then I've updated the min debian image to stretch and it works almost perfectly. Upon updating the kernel to 4.14.y (also tried latest linux stable build), with the ethernet + audio dtb, USB stopped working.

I can still use CDC to get internet to it, but I can't plug in any USB devices in host mode. 

 

Did any of you face this issue? If so, did you resolve it?

 

Thanks :)

 

Iscle

Share this post


Link to post
Share on other sites

hi to all,

               I made my own board using the V3s and Im new to the embedded world. Is my intention to enable the ethernet port on V3s and following this links:

1) https://licheezero.readthedocs.io/zh/latest/贡献/article 6.html

2) https://patchwork.ozlabs.org/patch/868730/

 I cant cross-compile the dtbs. Im using licheepi-zero dts and sunxi8i-V3s.dtsi to enable ethernet.

Did someone enable ethernet on V3s?

Share this post


Link to post
Share on other sites

@gaston1980

 

replace your kernel image and modules with this below ( i used the dock dtb also) 

 

git clone https://github.com/Lichee-Pi/linux.git -b zero-4.13.y
cd linux
make ARCH=arm licheepi_zero_defconfig
make ARCH=arm menuconfig #add bluethooth, etc.
make ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf- -j16
make ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf- -j16 INSTALL_MOD_PATH=out modules
make ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf- -j16 INSTALL_MOD_PATH=out modules_install

https://whycan.cn/t_336.html

 

 

https://lore.kernel.org/patchwork/patch/884654/

Note: /* The LEDs use PG0~2 pins, which conflict with MMC1 */

 

The NIC leds dont light up but it works

Share this post


Link to post
Share on other sites

Thanks for the links. Because im really new to this, Im trying to understand how to modify the dts to enable the ethernet. Thats why I try to modify the u-boot dts files and It works. But when I tried to modify the linux kernel 5.2.9 dts files it didn't work, I got errors and I making the same modifications as mentioned in those links.

One problem is that I need the licheepi-zero-dock to cross-compile, if not I got errors. So I changed it to get ethernet. If one of you can take at look at those files maybe you'll find something I can't. Thanks for you help.

 

Regards

Gaston

sun8i-h3.dtsi sun8i-v3s-licheepi-zero.dts sun8i-v3s-licheepi-zero-dock.dts

Share this post


Link to post
Share on other sites

I think it would be helpful if you could post these error messages. Have a look at my example devicetree files on Github:

https://github.com/petit-miner/Blueberry-PI/tree/master/Software/devicetree%20examples

 

And why do you have uploaded a dtsi file of the H3 SoC?

 

To use my devicetree files just copy them to arch/arm/boot/dts/

overwrite the sun8i-v3s.dtsi file and search for the Makefile in this folder.

 

Search in the Makefile for sun8i-v3s and delete these to listings. Replace them with sun8i-v3s-blueberrypi.dtb \

Then start compiling the kernel.

 

 

 

dts.PNG

Share this post


Link to post
Share on other sites

Solve it!!! It was ";". Thanks PETIT MINER for reply and yes I upload H3 dtsi by mistake . I was able to cross-compile the linux kernel and u-boot. Now I must create the SD card. Any help with this final step will be appreciate. Thanks

Share this post


Link to post
Share on other sites

Its possible to use an UART LCD to the V3s instead of using the LCD output? Im wondering about Power consumption using LCD. Im using AS1117-1.2 (1A), AS1117-1.8(1A) and AS1117-3.3(1A) to power the V3s.

Its possible to use ssh with V3s?

Share this post


Link to post
Share on other sites

What kind of UART LCD? These Nextion LCDs? Yeah sure they should work witout any issues. But why you don't use the 24bit parallel LCD interface?

You are much more flexible with them and also are much cheaper and you get higher resolution like 800x600.

 

You can use LDOs with a current limit of  1A  for every rail. You need: 3,3V; 3V; 1,8V and 1,2V. If you don't care about losses.

DC DC Step down are way more efficient, but are more complex to integrate.

Share this post


Link to post
Share on other sites
2 hours ago, Péter Szilágyi said:

Do you have any experience on controlling the GPIO-s on Lichee Pi (Allwinner V3s) from C code?

Since V3s and H3 have both their pins controller at the same address, ie pinctrl@1c20800, any library for H3 should be able to handle it.

Personally, I'm using this python library https://github.com/duxingkei33/orangepi_PC_gpio_pyH3 which using C code under the hood, see here :

https://github.com/duxingkei33/orangepi_PC_gpio_pyH3/blob/master/pyA20/gpio/gpio_lib.c

So, you can do quite the same to initialize /dev/mem and setting up the directions and values...

Share this post


Link to post
Share on other sites
On 8/26/2019 at 10:09 AM, markbirss said:

@gaston1980

 

replace your kernel image and modules with this below ( i used the dock dtb also) 

 


git clone https://github.com/Lichee-Pi/linux.git -b zero-4.13.y
cd linux
make ARCH=arm licheepi_zero_defconfig
make ARCH=arm menuconfig #add bluethooth, etc.
make ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf- -j16
make ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf- -j16 INSTALL_MOD_PATH=out modules
make ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf- -j16 INSTALL_MOD_PATH=out modules_install

 

@markbirss here seems to be a new kernel 5.2 for the LicheePi:
https://github.com/Lichee-Pi/linux/tree/zero-5.2.y


I compiled the zImage and copied this & modules & .dtb over...but the LicheePi only boot to the green light.

Got no serial boot-log :(

 

But I dont know what to select at he menuconfig - so I did leave this as it was...

 

Could you please extend your instructions? ;)

Thanks in advance!

Share this post


Link to post
Share on other sites
2 hours ago, markbirss said:

@guidol

 

simply copy all the kernel module files from the "out" folder to /lib/modules/kernelversion folder

 

 

 

I did that yesterday, but the LicheePi Zero doesnt boot up complete and I cant see why :(

Share this post


Link to post
Share on other sites
1 hour ago, markbirss said:

@guidol

 

Did you also copy modules.dep ? 

I have not yet tired this new kernel.

modules.dep - is this a file? I did copy the modules directory for the kernel 5.2 recursive to the card

dep could be dependecies?

Share this post


Link to post
Share on other sites

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.

Loading...
4 4