9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
* Re: [9fans] raspberry pi 4 arm64 test image
@ 2019-08-21 23:58 cinap_lenrek
  2019-08-22  4:37 ` Bakul Shah
  0 siblings, 1 reply; 19+ messages in thread
From: cinap_lenrek @ 2019-08-21 23:58 UTC (permalink / raw)
  To: 9fans

new kernel that should be able to deal with the two regions:

http://felloff.net/usr/cinap_lenrek/9pi4

sha1sum:

0222a824ec04c672955560ea120fa4d8de848e79

--
cinap



^ permalink raw reply	[flat|nested] 19+ messages in thread
* Re: [9fans] raspberry pi 4 arm64 test image
@ 2019-08-23 20:15 cinap_lenrek
  0 siblings, 0 replies; 19+ messages in thread
From: cinap_lenrek @ 2019-08-23 20:15 UTC (permalink / raw)
  To: 9fans

made new image and kernels if anyone wants to test.

http://gabe.felloff.net/usr/cinap_lenrek/9front-7341.7789bbc91c22.pi3.img.gz
http://gabe.felloff.net/usr/cinap_lenrek/9pi3
http://gabe.felloff.net/usr/cinap_lenrek/9pi4

sha1sums:

1b493439cbdff6aa6e0403cc0bda158841ebac40	9front-7341.7789bbc91c22.pi3.img.gz
b5e199a9ee2890929e096b29b6310bc12bbe00a8	9pi3
abc4a73cdffb5d1e0ddc4d86a20b5f2f0509ced0	9pi4

--
cinap



^ permalink raw reply	[flat|nested] 19+ messages in thread
* Re: [9fans] raspberry pi 4 arm64 test image
@ 2019-08-21 22:24 cinap_lenrek
  0 siblings, 0 replies; 19+ messages in thread
From: cinap_lenrek @ 2019-08-21 22:24 UTC (permalink / raw)
  To: 9fans

> The device tree has two entries.
>
> offset:0
> lenght:0x3c400000
>
> offset:0x40000000
> length:0xbc000000

excellent! that explains it.

--
cinap



^ permalink raw reply	[flat|nested] 19+ messages in thread
* Re: [9fans] raspberry pi 4 arm64 test image
@ 2019-08-21 21:59 cinap_lenrek
  2019-08-21 22:18 ` Bakul Shah
  2019-08-22  7:07 ` Richard Miller
  0 siblings, 2 replies; 19+ messages in thread
From: cinap_lenrek @ 2019-08-21 21:59 UTC (permalink / raw)
  To: 9fans

> The firmware on a pi4 with 2GB or 4GB RAM will only report 1GB.
> I believe you need to look at the board id (or probe for invalid
> addresses as in the teg2 kernel) to find out the real amount.

oh dear. i dont even know the expected physical memory map...
i guess that ram is continuous block at [0-0xfc000000). but
some memory might be reserved...

on what method does it report only 1GB?

i know of 3 methods so far:

- atags
- device tree /memory/reg property
- firmware property request (getramsize() in vcore.c)

for me getramsize() returns zero for both base and limit so its
completely useless.

i'm currently using device tree method, but the code assumes that
there is a single block entry. lets see if that lies as well with
the debug kernel.

--
cinap



^ permalink raw reply	[flat|nested] 19+ messages in thread
* Re: [9fans] raspberry pi 4 arm64 test image
@ 2019-08-21 21:35 cinap_lenrek
  0 siblings, 0 replies; 19+ messages in thread
From: cinap_lenrek @ 2019-08-21 21:35 UTC (permalink / raw)
  To: 9fans

ok, i prepared a kernel with debug prints. (i basically
buffer the debug outputs in kmesg and dump them on the
serial console and screen once they get initialized).

http://felloff.net/usr/cinap_lenrek/9pi4

i suspect that the device tree /memory/reg property
might not be a single 12 byte entry. and thats why
theres no *maxmem variable in #ec.

i also added some prints to fbinit() just to make
sure...

on my pi4, i get:

/memory/reg[12]: 00000000000000003E600000
confinit: *maxmem=0x3e600000
confinit: memsize=0x3e600000
confinit: getramsize() => 00000000 00000000
confinit: mem[0] => 00000000 3e600000
127 holes free
0x00670000 0x19310000 415891456
415891456 bytes free
fbinit: 1280x1024x16
fbinit: base=fed7b000
fbinit: va=ffffffff1ed7b000

Plan 9
...

--
cinap



^ permalink raw reply	[flat|nested] 19+ messages in thread
* Re: [9fans] raspberry pi 4 arm64 test image
@ 2019-08-21 19:53 cinap_lenrek
  2019-08-21 20:02 ` Richard Miller
  2019-08-21 22:20 ` Bakul Shah
  0 siblings, 2 replies; 19+ messages in thread
From: cinap_lenrek @ 2019-08-21 19:53 UTC (permalink / raw)
  To: 9fans

thank you!

i believe its just starting rio so you dont get any more output.

interestingly, the framebuffer was set up without error as
far as the kernel is concerned. otherwise we would get an
error when trying to attach devdraw.

on the bootargs prompt, enter:

!rc

then on the rc shell:

cat '#ec/*maxmem'

that should be the end of ram that the loader passes to us
in the device tree.

i'll prepare a kernel that you can copy into the sdcard
image with more debug output...

--
cinap



^ permalink raw reply	[flat|nested] 19+ messages in thread
* [9fans] raspberry pi 4 arm64 test image
@ 2019-08-21 17:56 cinap_lenrek
  2019-08-21 19:20 ` Bakul Shah
  2019-08-21 19:57 ` Richard Miller
  0 siblings, 2 replies; 19+ messages in thread
From: cinap_lenrek @ 2019-08-21 17:56 UTC (permalink / raw)
  To: 9fans

i'v made a sdcard image for the new raspberry pi 4
(also works on 3).

http://gabe.felloff.net/usr/cinap_lenrek/9front-7336.bb28fe19fe44.pi3.img.gz

this has support for most of the new hardware:

sdcard, ethernet and usb3.0

can someone please test this on the 2GB and 4GB
ram variants for me?

--
cinap



^ permalink raw reply	[flat|nested] 19+ messages in thread

end of thread, other threads:[~2019-08-23 20:15 UTC | newest]

Thread overview: 19+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-08-21 23:58 [9fans] raspberry pi 4 arm64 test image cinap_lenrek
2019-08-22  4:37 ` Bakul Shah
  -- strict thread matches above, loose matches on Subject: below --
2019-08-23 20:15 cinap_lenrek
2019-08-21 22:24 cinap_lenrek
2019-08-21 21:59 cinap_lenrek
2019-08-21 22:18 ` Bakul Shah
2019-08-22  7:07 ` Richard Miller
2019-08-22  8:58   ` Steve Simon
2019-08-22 20:26     ` Charles Forsyth
2019-08-21 21:35 cinap_lenrek
2019-08-21 19:53 cinap_lenrek
2019-08-21 20:02 ` Richard Miller
2019-08-21 22:20 ` Bakul Shah
2019-08-21 17:56 cinap_lenrek
2019-08-21 19:20 ` Bakul Shah
2019-08-21 19:25   ` Richard Miller
2019-08-21 20:05   ` Richard Miller
2019-08-21 20:27     ` Bakul Shah
2019-08-21 19:57 ` Richard Miller

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).