Jump to content

Lichee Pi zero


TonyMac32

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.

 

Link to comment
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.

Link to comment
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?

Link to comment
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

Link to comment
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?

Link to comment
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

Link to comment
Share on other sites

10 hours ago, gaston1980 said:

the ethernet port on V3s

you maybe want to look around here https://github.com/petit-miner/Blueberry-PI  I don't know how active @petit_miner still is, but at least he was active

 

Sunxi https://linux-sunxi.org/V3s  what is already in mainline kernel supported: https://linux-sunxi.org/Linux_mainlining_effort#Status_Matrix

 

Link to comment
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

Link to comment
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

Link to comment
Share on other sites

Another questions, this LDO can be used with the V3s? Im rechecking the board and find this link https://bbs.sipeed.com/t/yet-another-custom-v3s-board/240/4

about voltage and current recomended for Vcore, Vdram and Vsupply. In other sites I found that those values may vary (1.2V 1.2A for core, 1.8V 1.2A for Vdram and 3.3V 1.2A for Vsupply). Its possible 1A for core, Vdram and supply?

Link to comment
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.

Link to comment
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...

Link to comment
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!

Link to comment
Share on other sites

happy happy, joy joy, kernel compilation and upgrade to buster (jessie to stretch to buster) without any error.

For compilation of the kernel i followed the instructions at https://licheepizero.us/build-kernel-for-licheepi-zero

I just changed to kernel 5.2 instead default branch 4.10.y, also i used the latest gcc-linaro instead the one mentioned in the instructions.
Next thing to do:   make X running :-)

5.2.jpg

Link to comment
Share on other sites

On 3/11/2020 at 4:30 PM, mehmeh küçük said:

 Can you share a working image file with me.

at this time I couldnt give my kernel 4.14 image away, because its only a dd-backup of my running system with all my passwords and configuration :(

You also shouldnt use a image with LXDE, because the memory is already very low for a non X-System.
With only SSH-support and some additionally Swap-Spacethe system doesnt run that bad. 

 

You can try to use a minimal-image from the URL you downloaded the LXDE version and update to a more full system (apt install some utilities).

The zImage kernel 4.12 through 4.14 you could find at my Google-Drive:
https://drive.google.com/open?id=1X7y0XIC8TAj3R7Ag4iUu1f4rT77RdzPL

Link to comment
Share on other sites

Hello guys,

 

I made some changes on my licheepi, for example add battery to the RTC-VCC. The clock is keep the date-time when i powered off the device, but dont ticking: When i power up the lichee, the time is starting ticking.

Do you have any suggestion to switch on the 32Khz quartz?

 

Best Regards

Norbert

Link to comment
Share on other sites

Hello. Can someone help me connect a 5inch 480x854 display. I did u-boot with standard timings of 800x480 and with "x: 480, y: 854, depth: 18, pclk_khz: 32800, le: 12, ri: 38, up: 4, lo: 18, hs: 12, vs : 8, sync: 3, vmode: 0 " (kernel config with simple panel). No one works.

I am attaching the files dtbs and .config from the u-boot builder.

sun8i-v3s-licheepi-zero.dts .config

Link to comment
Share on other sites

Hi!

 

I want to add R8723BS Wi-Fi support, so I have downloaded the latest Linux sources here and built it with default settings.

It looks like Wi-Fi is OK (LED is blinking), but there is no keyboard anymore - when I connect a USB keyboard, I have no message and I'm not able to enter any text.

HID support is enabled in menuconfig.

 

I suppose, I didn't enable neccessary options in menuconfig. Please help to find out the reason.

 

Many thanks for help!

With regards,

Maksim

Link to comment
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...
×
×
  • Create New...

Important Information

Terms of Use - Privacy Policy - Guidelines