Raspberry Pi 4
Pages: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 ... 26
Chris Mahoney (1684) 2165 posts |
I believe that that’s a placeholder and isn’t expected to work. |
tymaja (278) 174 posts |
I’ve compiled the RISC OS beta ROM with DDE29b;the version date under ‘info’ is 18th Feb 2020, but the modules are all from April. I also copied the updated files for EtherGENET, which compiled correctly. I am stuck because I want to set up the EtherGENET in the configuration file, but I have to do it manually as I don’t have access to a suitable USB-C hub (reverse powered or otherwise), and can’t get one due to the covid lockdown. Can anyone show what they are using in their !Boot.Choices.Internet.Startup file? My file is set up for the Pi 3B+, What would be the equivalent set of lines for a manually configured IP + netmask for EtherGENET? Also is there a way for the Obey file to automatically select and set up either EtherUSB or EtherGENET depending on which module is found? I think that it might just crash when RMEnsure can’t find EtherUSB, preventing the system booting on the Rpi4. Thank you for your advice; it would be so much easier if I had a USB-C hub, but it will be a minimum of 2-3 weeks before I can get one (the relevant shops are closed) (Edit – the file described above also has, under hostname, another set of ‘Set’ commands, which set Inet$EtherIPAddr, Inet$EtherIPMask, and also sets Inet$EtherDevice EtherUSB. I am guessing that at this stage, a card that can boot Ethernet on both the Pi3B+ and Pi4 can’t be easily made; however I guess I may need to have two files and manually select one or the other. I will try to see what happens but would be grateful for more advice on this!) |
David Pitt (3386) 1248 posts |
| | Interface: Broadcom_GENET | RMEnsure EtherGENET 0.01 RMLoad System:Modules.Network.EtherGENET IfConfig -e ege0 192.168.1.208 netmask 255.255.255.0 CheckError P.S. Plus the Autosense.EtherGENET file. It is in the build.
|
Chris Hall (132) 3554 posts |
I am guessing that at this stage, a card that can boot Ethernet on both the Pi3B+ and Pi4 can’t be easily made; No, your guess is wrong. The Raspberry Pi 4 boots differently from Pi 3 and before: it ignores BOOTCODE.BIN (which on the Pi 3 loads START.ELF) as it has its boot loader on the PCB which loads START4.ELF. The CONFIG file also allows a different ROM image to be loaded by making a Pi4-specific kernel= allocation. The Pi4-specific ROM can use the USB OTG power socket for USB and Internet. See here |
Colin (478) 2433 posts |
Anyway I can get the sources to the working EtherGENET? I can’t see how to get the sources from the ROOL repository. |
Jeffrey Lee (213) 6048 posts |
Briefly:
The above steps will cope with situations where the merge request is coming from a private repository (if it was a public repo you could just clone it and check out the branch), and changes to binary files (the “plain diff” download option only includes the changes to text files) |
David Pitt (3386) 1248 posts |
Neither can I see how to using git. All I did was to download the new files individually, rename them as required and manually place them in the build. In this case there are 15 files but it does not take long. And it worked, which is always encouraging. This is the merge request. Click on Changes to see diffs of all the changed files. Click on the ‘View file’ button on the right then click on the ‘Download’ button on the right. Step down the files and repeat 14 times. I hope this answer is not too disappointing with its complete lack of expertise. |
Colin (478) 2433 posts |
Thanks David, that did the trick.
I did try git apply before my initial post but it failed – probably user error I downloaded the ‘Plain diff’ and used that, don’t know if ‘email patches’ are different. Anyway the pi4 works hires usb audio – my b+ doesn’t – but streaming high res over the network is still a problem even with the new ethernet driver. Looking forward to see how isochronous works on the xhci driver when it arrives. |
David Pitt (3386) 1248 posts |
This is on a Mac BTW. I have just got that to work. Obviously one needs to navigate to the EtherGENET folder to apply the patch!! imac@iMacPro Ethernet % cd ethergenet imac@iMacPro ethergenet % git apply 1.patch 1.patch:1619: trailing whitespace. sc->sc_tx.cidx = RD4(sc, GENET_TX_DMA_CONS_INDEX(qid)); 1.patch:1631: trailing whitespace. sc->sc_rx.cidx = RD4(sc, GENET_RX_DMA_PROD_INDEX(qid)); 1.patch:1763: trailing whitespace. case 0: /* Pass errors */ 1.patch:1923: trailing whitespace. if (nicunit[unit]->ctrl->running) 1.patch:2082: trailing whitespace. nicunit[unit]->filters = NULL; warning: squelched 9 whitespace errors warning: 14 lines add whitespace errors. imac@iMacPro ethergenet % It should be possible to handle, or suppress, white space errors, but that might take me a bit longer!! Anyway the new and modified files did appear in the source. The ROM was built and it works!! |
Colin (478) 2433 posts |
Thanks that’s good to know for future reference. It turned out that 1.diff from the ‘Plain diff’ option doesn’t work but 1.patch from the ‘Email patches’ option – which also just saves and doesn’t email anything – works. Who knew that plumping for 1 of 2 options would result in picking the wrong one. |
Raik (463) 2061 posts |
Something goes wrong with my settings. |
Colin (478) 2433 posts |
I had no problems. After I configured the module I just used shutdown and clicked on restart. Can you change other configuration options? – it may be an sd card problem. |
Raik (463) 2061 posts |
If I check the CMOS date on my card it is changed. New date, new time but it looks like it will not be loaded. |
Chris Mahoney (1684) 2165 posts |
config/txt should have a couple of ‘ramfs’ lines pointing to the CMOS file. I don’t have my Pi handy at the moment so I can’t say exactly what they should say. |
John WILLIAMS (8368) 493 posts |
|
Stuart Painting (5389) 714 posts |
Some possibilities:
|
Raik (463) 2061 posts |
Thanks for the information. Edit: Is working now. Was like I wrote but not sure why the second line was lost. |
tymaja (278) 174 posts |
For the people who get the ROM working (EtherGENET or otherwise), what is the date on the Switcher ‘Info’ box? Mine is Feb 2020 and just checking that is correct (as the modules are mainly from April!) |
Chris Hall (132) 3554 posts |
My ethernet on the Pi4 works without the file EtherGENet. |
Colin (478) 2433 posts |
Mine shows 28-Apr-20 |
tymaja (278) 174 posts |
My ROM says May 2020 now – it was because I don’t have an RTC on my Pi, so it showed Feb 2020 on my build. My current Pi4 config is as follows: RPi4, 4GB; The end result is that it continues to get ‘stuck’ where it says ‘init mod SDIODriver’, with the cursor stuck after the ‘r’ of driver. I can’t use a keyboard or mouse due to no back-powered USB-C port (I borrowed one from a friend but it doesn’t have the back-power feature). Has anyone got stuck at this point previously when trying RISCOS on the RPi4? I know it isn’t supported but I am so close to getting a VNC RPi4 and would really appreciate more RAM, fast Ethernet + CPU (for better VNC and for some mathematical ‘hobby’ programming I am doing) – Thank you for any advice :) |
Colin (478) 2433 posts |
Todays Rpi beta ROM should include the new etherGENET module so you could try that to see if that works. If you have set up the sdcard on another raspberry pi you will need to change the cmos with
before using the pi4 as otherwise the networking won’t work and as you don’t have a keyboard you can’t change it on the pi4. There may be other problems if you have set up the card to use etherusb You can power the pi from the gpio ports then plug a normal hub in the usbc socket – thats what I do. Edit: It occurs to me that you won’t have those configuration options on another pi as the EtherGENET module won’t initialise. |
tymaja (278) 174 posts |
Thank you! Am downloading the beta disc image and beta ROM right now – will see if it works. I think I will power the RPi from the GPIO pins if I can get to a stage where it boots and ‘needs a keyboard’ – as the version I compiled hangs during early initialisation still! |
Colin (478) 2433 posts |
Try Pi4cmos.zip It contains the files from my !Boot.loader directory – the riscos module has a modified USB module but that shouldn’t matter to you. It also contains the !boot.choices.internet folder which sets up the internet and a file in !boot.choices.boot.Tasks which sets up pi4Ram and Pi4Disc shares. That should get you to the point where you can modify it from another machine. Should work – though it is untested. Edit i forgot the InetSetup.AutoSense.EtherGENET |
Jeffrey Lee (213) 6048 posts |
Note that the EtherGENET CMOS code was tweaked so that the default CMOS values should be sensible – so you’ll probably only need to manually configure it if you’ve previously used (and reconfigured) the earlier version from the merge request which had the bad defaults. |
Pages: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 ... 26