what about PI 4

Talk about the project itself, the community, where we are and what we need. Great place to introduce yourself and make friends as well.

Re: what about PI 4

Postby graysky » Thu Jul 04, 2019 6:08 pm

@perosb - I think there are some kernel settings that need to be tweaked to get the Arch ARM image to work with it. You'll have to wait for official support
graysky
Developer
 
Posts: 1731
Joined: Sun Jun 26, 2011 6:56 am
Location: /run/user/1000

Re: what about PI 4

Postby perosb » Thu Jul 04, 2019 10:46 pm

$this->bbcode_second_pass_quote('', '@')perosb - I think there are some kernel settings that need to be tweaked to get the Arch ARM image to work with it. You'll have to wait for official support

Yes, I am aware it needs tweaking, hence I'm here asking in the forums.

Anyways, I compiled a new kernel on my rpi3 using latest PKGBUILD and latest config from raspbian and the rpi4 boots nice.
perosb
 
Posts: 2
Joined: Thu Jul 04, 2019 5:01 pm

Re: what about PI 4

Postby lategoodbye » Fri Jul 05, 2019 4:48 am

Here a short statement as a BCM283x kernel maintainer. The Raspberry Pi 4 needs a lot of upstreaming work to get it into the Mainline Kernel. The biggest problem is the lack of SoC peripheral description (release is announced in a few weeks according to the RPF). Also there is no U-Boot support yet.

$this->bbcode_second_pass_quote('moonman', 'D')oes anyone know if ethernet is sharing bandwidth with USB 3.0 ports?


AFAIK the USB 3.0 hub is connected via PCIe and Ethernet is connected directly via RGMII to the SoC.
lategoodbye
 
Posts: 116
Joined: Sat Dec 29, 2018 1:24 am

Re: what about PI 4

Postby tiagoboldt » Mon Jul 08, 2019 5:50 pm

Can anyone pinpoint where/how to track progress on rpi4 support? I've been trying to find this, without success.
Thanks
tiagoboldt
 
Posts: 19
Joined: Wed Feb 10, 2016 11:14 am

Re: what about PI 4

Postby graysky » Thu Jul 11, 2019 5:08 pm

I finally received by Pi4 with 4G. I am reading through this guide: https://www.raspberrypi.org/documentati ... uilding.md

It seems the the output of `make bcm2711_defconfig` produces quite a different config file. I ran this and am building linux-raspberry pi using that config now.

Config file that produces: https://gist.github.com/graysky2/868022 ... 003dab4f57

I altered the CONFIG_LOCALVERSION="-v7l" line to read CONFIG_LOCALVERSION="-ARCH" and also changed the default CPU gov to ondemand.

For reference, the current config for linux-raspberrypi: https://github.com/archlinuxarm/PKGBUIL ... ypi/config
Last edited by graysky on Thu Jul 11, 2019 7:28 pm, edited 1 time in total.
graysky
Developer
 
Posts: 1731
Joined: Sun Jun 26, 2011 6:56 am
Location: /run/user/1000

Re: what about PI 4

Postby graysky » Thu Jul 11, 2019 6:42 pm

An update: the kernel I built boots fine on my RPi3B+. I do not see any regressions in dmesg.

More importantly, installing that microSD into the RPi4 allows it to boot and I am seeing all 4 G of RAM. The USB ports seem to work with a thumb drive. I can compile the kernel under this hardware as a stability test (temp ramp up to 80C but no issues for 40 minutes). What else should be tested?

$this->bbcode_second_pass_code('', '% free -m
total used free shared buff/cache available
Mem: 3906 80 3764 0 62 3787
Swap: 3972 0 3972
')

$this->bbcode_second_pass_code('', '% lscpu
Architecture: armv7l
Byte Order: Little Endian
CPU(s): 4
On-line CPU(s) list: 0-3
Thread(s) per core: 1
Core(s) per socket: 4
Socket(s): 1
Vendor ID: ARM
Model: 3
Model name: Cortex-A72
Stepping: r0p3
CPU max MHz: 1500.0000
CPU min MHz: 600.0000
BogoMIPS: 108.00
Flags: half thumb fastmult vfp edsp neon vfpv3 tls vfpv4 idiva idivt vfpd32 lpae evtstrm crc32')
graysky
Developer
 
Posts: 1731
Joined: Sun Jun 26, 2011 6:56 am
Location: /run/user/1000

Re: what about PI 4

Postby tiagoboldt » Fri Jul 12, 2019 4:11 pm

@graysky, can you build the kernel in a rpi2, change the config file to use that new kernel and use the same card to boot a pi4? I would like to move from pi2 to pi4 by just replacing the board.
tiagoboldt
 
Posts: 19
Joined: Wed Feb 10, 2016 11:14 am

Re: what about PI 4

Postby graysky » Fri Jul 12, 2019 6:11 pm

This kernel should work on the Pi2 - Pi4. Note that Kevin already has distilled out the options from that config and built an Arch ARM kernel that works on the Pi2 - Pi4. He might want to do some testing before pushing to the repo. Basically, just go under "System type>Multiple platform selection" and disable "ARMv6 based platforms (ARM11)" then you can enable the LPAE option from that same section. Probably want to also change the RAM split from 2/2 to 1/3 split.

EDIT:
Here is the config: https://gist.github.com/graysky2/b78502 ... 9a2c9f7d5a
graysky
Developer
 
Posts: 1731
Joined: Sun Jun 26, 2011 6:56 am
Location: /run/user/1000

Re: what about PI 4

Postby graysky » Fri Jul 12, 2019 7:28 pm

graysky
Developer
 
Posts: 1731
Joined: Sun Jun 26, 2011 6:56 am
Location: /run/user/1000

Re: what about PI 4

Postby tiagoboldt » Fri Jul 12, 2019 8:03 pm

My setup loads the kernel from the SD and then boots from an external USB disk with the following cmdline.txt:
$this->bbcode_second_pass_code('', 'root=PARTUUID=1bf9d30c-01 rw rootwait console=ttyAMA0,115200 console=tty1 selinux=0 plymouth.enable=0 dwc_otg.lpm_enable=0 elevator=noop')
Worked perfectly with pi2. With pi4 and this config, I can't move past the rainbow screen at boot. The ACT led blinks at first than stays on permanently.
Ideas?

Edit: I only have the boot partition on the SD card. Everything else is on the external usb disk.
Last edited by tiagoboldt on Fri Jul 12, 2019 8:43 pm, edited 1 time in total.
tiagoboldt
 
Posts: 19
Joined: Wed Feb 10, 2016 11:14 am

PreviousNext

Return to Community

Who is online

Users browsing this forum: No registered users and 8 guests