Linux Port
Pages: 1 ... 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20
Andrew Chamberlain (165) 74 posts |
Hi Timothy, I’ve just got to the point in setting up the RO port on my Chromebook where it fails with "Unable to map low address space, try “sudo sysctl vm.mmap_min_addr=12288”". As I understand it, it’s not possible to alter the vm.mmap_min_addr sysctl value from the Crostini terminal. Breaking Zap and the Debugger wouldn’t necessarily be a dealbreaker for me so I’d happily give the amended version a shot if you’ve still got it handy. Otherwise, can anyone advise another course of action? Would rooting the Chromebook to adjust this variable be likely to cause issues with security/stability when using ChromeOS? |
Chris Gransden (337) 1207 posts |
You can enable developer mode and install crouton. |
Andrew Chamberlain (165) 74 posts |
You’ve convinced me. I’ll have a crack at that imminently, thanks for the suggestion! |
Andrew Chamberlain (165) 74 posts |
I’ve had a few goes at getting this running via crouton and am now at the point where the build fails with the following message:
I had a very similar message when I tried using Ubuntu rather than Debian. Anyone able to point me in the right direction? |
Chris Gransden (337) 1207 posts |
Using the below make option should get the rom to build if bwrap doesn’t have permissions. make INSECURE=YES |
Andrew Chamberlain (165) 74 posts |
Thanks Chris, just tried this and have got a bit further. Now it fails with “Unable to open NVRAM file.” Is that a sign that I’m missing a dependency? |
Chris Gransden (337) 1207 posts |
I think it’s failing as www.marutan.net is down so RPCEmu can’t be built. |
Andrew Chamberlain (165) 74 posts |
marutan.net is back up now and it’s still failing with the same “Unable to open NVRAM file” message. It’s a bit perplexing |
Chris Gransden (337) 1207 posts |
There doesn’t appear to be a way of building RPCEmu without the bwrap command working. A workaround is to build RISC OS Linux on a Linux machine and transfer the HardDisc4 folder across.
Transfer to Chrome OS machine and run in the RISC _OS_Linux folder,
Then to run RISC OS Linux,
|
Andrew Chamberlain (165) 74 posts |
It’s weird that bwrap won’t create new namespaces. Maybe some incompatibility with being run in a chroot? Or could it be unhappy with my hardware? I’ll have a go at your work around later on. Thanks again for your help |
Chris Gransden (337) 1207 posts |
It looks like it’s to do with the Chrome OS Kernel. This is the error I get.
sudo sysctl kernel.unprivileged_userns_clone=1 |
Andrew Chamberlain (165) 74 posts |
Got it working! Many thanks for your help, Chris. Doesn’t seem to like the window being resized in xfce – it goes black if you enlarge it. Might try a different UI to see if that’s any better. |
Andrew Chamberlain (165) 74 posts |
Here are some benchmarks for an MT8183-based HP Chromebook 11a: RISCOSmark 2.04 (30-Dec-2015) by Richard Spencer 2003 MOS Utilities 5.29 (28 Apr 2021) Test Benchmark |
Andrew Chamberlain (165) 74 posts |
To access the internet does it require the internet connection on the host machine to be via an ethernet cable? My Chromebook is connected via wi-fi and the Internet and Access icons are greyed out in the Configure box in RISC OS. |
Chris Gransden (337) 1207 posts |
The networking is transparent. Just put,
in !Boot.Choices.Boot.Desktop. |
Andrew Chamberlain (165) 74 posts |
Thank you! Typing this from Netsurf inside RISC OS. |
Martin Philips (9013) 48 posts |
When I try running the RISCOS.IMG on RPi4 in Raspian (or Twister) I assume I’m not doing something I should be doing Thanks! |
Martin Avison (27) 1494 posts |
I deleted my original message as a load of rubbish! Sorry. |
Chris Gransden (337) 1207 posts |
Try, ./run_RISC_OS >/dev/null
RISCOS.IMG has been built with debug enabled. |
Martin Philips (9013) 48 posts |
Ok – I got something… I’m using the RISO_OS_Linus_Binary-master Built/sdl Unix/RISCOS.IMG >/dev/null - gets a CLI which can launch a RISCOS desktop… |
Chris Gransden (337) 1207 posts |
Did you try, ./run_RISC_OS >/dev/null |
Jan Rinze (235) 368 posts |
I think he means that it doesn’t boot into the desktop. Playing around with the executables does work but the way everything is depending on both environment variables and wrappers it’s very limited without the extra stuff setup in run_RISC_OS.sh. The way the output is relayed to the console has baffled me for a long time but I have accepted it as just another quirk on how everything is setup. |
Chris Gransden (337) 1207 posts |
It does if you run the command, ./run_RISC_OS
That’s just debug turned on in the build. |
Martin Philips (9013) 48 posts |
If I do ‘./run_RISC_OS’ it seems to try to build it and fails fairly early.. |
Jan Rinze (235) 368 posts |
Ah, i see. The run_RISC_OS script is checking several things and will start a build if it can’t find some parts. The wrapper binary is required to get more secure split between RISC OS and Linux. I have used this command in a script for most of the time: RISC_OS_IXFS_HardDisc4='IXFS#X:$' RISC_OS_Alias_IXFSBoot='/!Boot' ./sdl ./wrapper --network --handle-reboots bwrap -- --bind ./Harddisc4 / --proc /proc --chdir / ./\!Boot/Loader/RISC_OS --nvram ./\!Boot/Loader/CMOS it assumes that you have copied the RISC_OS executable to ./Harddisc4/\!Boot/Loader/RISC_OS and have a valid CMOS at ./Harddisc4/\!Boot/Loader/CMOS Be aware that there won’t be a disk icon on your desktop per default. To get that there as well I have a task obey in !Boot.Choices.Boot.Tasks called IXFSmount with the following line: X AddTinyDir IXFS::Root.$ |
Pages: 1 ... 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20