Tiny Core Linux

Tiny Core Base => Raspberry Pi => Topic started by: TimJ on June 24, 2019, 04:18:42 AM

Title: Pi4
Post by: TimJ on June 24, 2019, 04:18:42 AM
Pi 4 has been released and is available.

Key features 1.5G 4 core Arm8
1,2, or 4Gb memory
2 x USB 2
2 x USB 3
Native Gigabit ethernet
2 x HDMI

https://www.raspberrypi.org/products/raspberry-pi-4-model-b/ (https://www.raspberrypi.org/products/raspberry-pi-4-model-b/)

I have a 2 GByte one on order for delivery tomorrow. The next challenge will be to get piCore on it.

Tim
Title: Re: Pi4
Post by: Juanito on June 24, 2019, 05:47:16 AM
Do you know which kernel versions are known to work with it?
Title: Re: Pi4
Post by: core-user on June 24, 2019, 06:28:03 AM
N.B. Those 2 HDMI are micro sized sockets.
Title: Re: Pi4
Post by: TimJ on June 24, 2019, 06:41:41 AM
Do you know which kernel versions are known to work with it?

I have just downloaded the latest Raspbian Lite that supports it and it reports

Code: [Select]
pi@raspberrypi:/ $ uname -a
Linux raspberrypi 4.19.50-v7+ #896 SMP Thu Jun 20 16:11:44 BST 2019 armv7l GNU/Linux
pi@raspberrypi:/ $ vcgencmd version
Jun 20 2019 16:12:41
Copyright (c) 2012 Broadcom
version a59fb7a74180be0111dbc5c18a37ec6df86f14a3 (clean) (release) (start)

It will certainly need a whole lot mode drivers.

Tim
Title: Re: Pi4
Post by: TimJ on June 24, 2019, 06:55:41 AM
Looking in the boot partition there are 3 kernel

kernel.img  - Linux version 4.19.50+
kernel7l.img - Linux version 4.19.50-v7l+
kernel7.img - Linux version 4.19.50-v7+

Title: Re: Pi4
Post by: Paul_123 on June 24, 2019, 04:19:26 PM
Yuck, I was afraid of that.......that means another 10mb or so on the boot partition.   And a whole set of module extensions to manage.

Here is the new defconfig they are using.   https://github.com/raspberrypi/linux/blob/rpi-4.19.y/arch/arm/configs/bcm2711_defconfig

Title: Re: Pi4
Post by: TimJ on June 24, 2019, 05:43:02 PM
Yes a pain.

If I get a chance I will try and get piCore booting on it.

They are clearly selling well, CPC had 3000 in stock at 8:00am - sold out by lunchtime.

The spec looks good, it looks as if they have sorted out the I/O bottleneck of Pi3, I have an Odroid as a NAS and the performance is great, but this Pi should compete.

Any chance of you Busybox config? - Thanks

Tim.

Title: Re: Pi4
Post by: Paul_123 on June 24, 2019, 07:23:49 PM
I had to order mine from Canakit in Canada.....all the USA distributors were out by the time I could get online  >:(.

Ya, on busybox, I got sidetracked.
Title: Re: Pi4
Post by: bmarkus on June 25, 2019, 01:16:05 AM
My RPi4 will arrive this week.
Title: Re: Pi4
Post by: TimJ on June 25, 2019, 10:54:15 AM
Bela,

It is good to have you around. I hope everything is well with you.

I hope that you do not mind that I have tried to get piCore development going again.

Tim.

Title: Re: Pi4
Post by: bmarkus on June 25, 2019, 02:08:21 PM
Hi Tim

thanks for asking. Everything fine, just had hacktic times with my main job not leaving time for piCore. Now it is a bit better. Just started to make a new version last week and I have seen RPI4 is coming. One side it is great, on the other hand it must be handled is causing some delay again.

If we can work in a team including Paul and anyone else willing to join we can make it live again, but too much for one person.


Regards,

Béla
Title: Re: Pi4
Post by: TimJ on June 25, 2019, 07:30:17 PM
Bela,

That sound great, i fully agree that it is all too much for 1 person to do. We need to sort out how to organize things.

On the Pi4 I have it booting into piCore

Code: [Select]
tc@box:~$ uname -a
Linux box 4.19.56-piCore-v7l #1 SMP Tue Jun 25 19:10:37 BST 2019 armv7l GNU/Linux
tc@box:~$ cat /sys/firmware/devicetree/base/model
Raspberry Pi 4 Model B Rev 1.1
tc@box:~$

I have other pressing work to do so can't get back to it until the weekend

Tim.
Title: Re: Pi4
Post by: bmarkus on June 26, 2019, 03:38:23 AM
(https://img.purch.com/image031-png/w/711/aHR0cDovL21lZGlhLmJlc3RvZm1pY3JvLmNvbS9MLzUvODQzMTYxL29yaWdpbmFsL2ltYWdlMDMxLnBuZw==)

(https://img.purch.com/image047-png/w/711/aHR0cDovL21lZGlhLmJlc3RvZm1pY3JvLmNvbS9ML0YvODQzMTcxL29yaWdpbmFsL2ltYWdlMDQ3LnBuZw==)

(https://img.purch.com/image045-png/w/711/aHR0cDovL21lZGlhLmJlc3RvZm1pY3JvLmNvbS9ML0MvODQzMTY4L29yaWdpbmFsL2ltYWdlMDQ1LnBuZw==)
Title: Re: Pi4
Post by: geev03 on June 26, 2019, 01:01:29 PM
" bootcode.bin is not used on the Raspberry Pi 4, because it has been replaced by boot code in the onboard EEPROM 3."https://www.raspberrypi.org/documentation/hardware/raspberrypi/booteeprom.md (https://www.raspberrypi.org/documentation/hardware/raspberrypi/booteeprom.md)
Title: Re: Pi4
Post by: geev03 on June 26, 2019, 01:15:59 PM
Got my Pi4B (4GB RAM) yesterday. 'Raspian Buster' appears to be not finished, still 32bit ..
What I thought was an error turned out to be " in the mainline Linux kernel device tree files - all Pis report as being BCM2835, whether they actually have BCM2835, BCM2836, BCM2837, or BCM2838/BCM2711 in."https://github.com/raspberrypi/linux/blob/rpi-4.19.y/arch/arm/boot/dts/bcm283x.dtsi#L19 (https://github.com/raspberrypi/linux/blob/rpi-4.19.y/arch/arm/boot/dts/bcm283x.dtsi#L19)

Title: Re: Pi4
Post by: Paul_123 on June 26, 2019, 01:31:15 PM
RPI is not planning to release a 64 bit version, and will not until there is a valid reason too.  https://www.raspberrypi.org/blog/raspberry-pi-4-on-sale-now-from-35/#comment-1510286

And all pis have reported as BCM2835 for sometime, this is intentional as well.
Title: Re: Pi4
Post by: gavinmc42 on June 27, 2019, 01:57:45 AM
Just because RPF have not done a 64bit version does not mean it is impossible
I use Gentoo64.

The Pi4B1 is cheaper than the 4B4 but 1GB is small for a dual screen OS.
Unless there is nice small OS ;)

Any speed penalty between 32 and 64bit is now less important as the 4 is faster in everything.
With the dual screens that makes it a reasonable box for Desktop development.
But probably best to get the 4B4 when compiling things like the kernel.
Title: Re: Pi4
Post by: bmarkus on June 28, 2019, 05:51:30 AM
My RPi4 just arrived, show is starting :)
Title: Re: Pi4
Post by: core-user on June 28, 2019, 11:19:12 AM
Just back in stock at The PiHut, so mine's on order now, should get it next week, waited for the 4GB version, didn't see any point in just getting a 2GB version. ;)

Will be following your progress. :)
Title: Re: Pi4
Post by: gavinmc42 on July 02, 2019, 10:44:26 PM
Clues for a PiCore64?
https://www.raspberrypi.org/forums/viewtopic.php?f=63&t=244478

PI4 is smoking fast even on untuned Raspbian.
Er, smoking just mean now usable as Desktop :)
Title: Re: Pi4
Post by: TimJ on July 03, 2019, 06:14:17 PM
Personally I don't see any advantage of 64bit on the Pi, but I have just installed Openwrt on a Pi3 and to my surprise it reports
Code: [Select]
root@OpenWrt:~# uname -a
Linux OpenWrt 4.9.152 #0 SMP Wed Jan 30 12:21:02 2019 aarch64 GNU/Linux
Title: Re: Pi4
Post by: gavinmc42 on July 03, 2019, 10:53:25 PM
Did not know OpenWRT was 64bit on Pi3.
Thanks for that, now that the Pi4's are out I need to do something with my 3's.
Battlemesh is interesting.

Going to be interesting to see how long it takes for a Pi4 2711/A72 version.

Some big software apps like databases prefer 64bit.
The big software houses are dropping 32bit support.

The thing with PiCore is it works really well on the smaller Pi's and probably 32bit is ok.
Not going to see massive databases running on a Zero W?
Why go to all that pain when spending a few more 10x dollars gets you a Pi4?

A Pi4 with 6 Uart connected Zeros could make a small multiuser system.
A few of those and donated screens and a classroom could be setup?

Title: Re: Pi4
Post by: xyz-worx on July 04, 2019, 06:42:27 AM
Hello gavinmc42,

if you have one spare RPi3, why not using it for a "Pi-hole" (https://pi-hole.net/ (https://pi-hole.net/)).

IMHO the best network-wide ad-blocker you can find.
Mine runs on a an iMX53 QSB with custom compiled kernel
under Debian Strech without any problems.

best xyz-worx
Title: Re: Pi4
Post by: geev03 on July 05, 2019, 10:24:54 AM
Code: (bash) [Select]
login as: gv
gv@192.168.1.234's password:
Welcome to Alpine!

The Alpine Wiki contains a large amount of how-to guides and general
information about administrating Alpine systems.
See <http://wiki.alpinelinux.org/>.

You can setup the system with the command: setup-alpine

You may change this message by editing /etc/motd.

Could not chdir to home directory /home/gv: No such file or directory
localhost:/$ uname -a
Linux localhost 4.19.53-0-rpi #1-Alpine SMP PREEMPT Wed Jun 19 14:41:19 UTC 2019    aarch64 Linux
localhost:/$

Found the 64 bit Alpine Linux  very fast  on RPi 3B   . The 64bit WoA (Windows 10 pro-1803) on the same Pi3B  is a bit slow but the WsL is usable.

Hope the TinyCore for Pi4B is gradually nearing the release date...

Title: Re: Pi4
Post by: gavinmc42 on July 07, 2019, 11:58:56 PM
if you have one spare RPi3, why not using it for a "Pi-hole" (https://pi-hole.net/).

Anyone put pi-hole on PiCore?
Raspbian Lite is too big for me, I would prefer a nice small PiCore version.
But is the Ethernet fast enough on a Pi3?
Title: Re: Pi4
Post by: Paul_123 on July 08, 2019, 01:09:35 PM
I've glanced at the install script several times.....doesn't look like it would be all that bad to do.  Updates and persistent/log data is probably the most difficult to deal with.

I think Ethernet speed is relative, but isn't pihole just a glorified DNS server.  Not all your traffic is going through the device.

Title: Re: Pi4
Post by: Greg Erskine on July 08, 2019, 06:11:26 PM
I vote gavinmc42 gets pihole going on piCore.  :D

I was looking at it last week because I seem to be getting bombarded with advertisements!

BTW: I really like the writing style of the pihole scripts.
Title: Re: Pi4
Post by: xyz-worx on July 09, 2019, 04:52:01 AM
Hi,

I didn't want to hijack this thread with quite different topic. Maybe we can
open a separate thread to share ideas.

Therefore only some additional thoughts:

@Paul:
You are right. Pihole is only responsible to resolve (or block) URL requests.
The remaining traffic is untouched.

@Greg:
That's exact why I installed it about half a year ago. Up to 40% of URL requests
are blocked, because they are directed to advertisement or tracking systems.
The current 'blacklist' has about 140,000 (sic!) entries at the time of writing this.

best xyz-worx
Title: Re: Pi4
Post by: gavinmc42 on July 10, 2019, 01:05:34 AM
I vote gavinmc42 gets pihole going on piCore. :-X

I will be getting a Pi4B4 for development, things like PiCore kernel compiling etc.

But I found the Fifth Browser not too bad back in version 9?
Is that similar ad blocking?
Title: Re: Pi4
Post by: PDP-8 on July 10, 2019, 05:45:36 PM
Uh oh, the usb-c connector is missing some resistors ...

https://www.theregister.co.uk/2019/07/10/pi_4_usb_c/

Apparently this might confuse *some* power adapters with e-marked cabling as being an audio device.  I suppose a fix is already in order ...
Title: Re: Pi4
Post by: gavinmc42 on July 12, 2019, 03:28:47 AM
I'm using the old 2.5amp supply with adapter.
Don't need the extra power for USB HD yet.

Power supply is not the same as charger.
And USB-C PS/Chargers might do bad stuff.
Why fix something that might not work on all those third party PS/Chargers.

Get the official 3amp one(when available) and support the RPF?
Or recall all Pi4's?

Those who can afford a Macbook don't have any money spare for the Official supply?
But yep rev 5.0 of the PCB is in the works?
Title: Re: Pi4
Post by: shadow of death on August 25, 2019, 05:39:58 PM
Any Updates on a Pi 4 Kernel?
Title: Re: Pi4
Post by: shadow of death on August 29, 2019, 12:18:55 AM
...that means another 10mb or so on the boot partition....

Not exactly, since the Pi 4 uses a complete own kernel there is a good option to minimize the boot partition size. Just by spliting the whole thing in 2 different images. Images 1 Pi 1 - Pi 3, Image 2 only Pi 4 kernel.

This should safe us some space.
Title: Re: Pi4
Post by: shadow of death on September 16, 2019, 12:17:27 AM
The released the first 64bit working Pi Linux
https://www.balena.io/blog/balena-releases-first-fully-functional-64-bit-os-for-the-raspberry-pi-4/

Its balena, a distro specificly for containers.