Page 1 of 1

What is a more permissive kernel?

Posted: Fri Sep 04, 2020 8:11 pm
by bigpup
I am trying to run a program script that is used to change the firmware (bios) on Chromebooks.
It can be run in a terminal on any Linux OS.
Tried it in several different Puppies, but always get this error.
The script runs but stops before completing and gives this error message.
Unable to read current firmware; cannot continue.

Either add 'iomem=relaxed' to your kernel parameters,
or trying running from a Live USB with a more permissive kernel (eg, Ubuntu).
Does anyone know what a more permissive kernel is?
Seems the ones Puppy uses are not.

Also, not too sure how I would add 'iomem=relaxed' to your kernel parameters?

Re: What is a more permissive kernel?

Posted: Fri Sep 04, 2020 8:49 pm
by Keef
The kernel parameter would go on the kernel line in your grub4dos or grub entry.
No idea what a 'permissive' kernel is, but it will probably lead to more under-age sex and drug taking.

Re: What is a more permissive kernel?

Posted: Sat Sep 05, 2020 11:02 am
by packetteer
HI Bigpup
You would edit the advanced menulst and you would then cut and past a new menu item. Then add the iomen
command to the new memu entry. When you boot your puppy use the down arrow key to select the advance memu
item and then use the down arrow key to select your new memu entry.

Best Regards
John

Re: What is a more permissive kernel?

Posted: Sat Sep 05, 2020 6:14 pm
by bigpup
Thanks for the information people!
I figure people is a neutral word to call you all :thumbup2:

Still wonder what a permissive kernel is?

Re: What is a more permissive kernel?

Posted: Sun Sep 06, 2020 8:42 pm
by peterm321
The script trying to modify the firmware may give a clue.

Certain Linux distributions do restrict access to /dev/mem to userspace
processes by the kernel compile option: CONFIG_STRICT_DEVMEM
(that may be one possibility from a number of possibilities)

Strangely in upup raring I needed a special kernel module to
access all of /dev/mem, but in my current OS, Tahr I was able to recover
information from /dev/mem, when I checked my config Tahr had left CONFIG_STRICT_DEVMEM unset.

The parameters a kernel is compiled with can be found at /proc/config.gz. This file can be decompressed at a terminal and checked for strings:

Code: Select all

gzip -cd /proc/config.gz | grep -i strict 
https://stackoverflow.com/search?q=dev+mem+restrictions

Re: What is a more permissive kernel?

Posted: Fri Sep 11, 2020 2:10 pm
by ozsouth
Most pups have their kernel config at /boot/config.....
My 5.4.55 64bit kernel (link in the 'kernels' forum section) has the following 'strict' entries:

early in file:
CONFIG_ARCH_HAS_STRICT_KERNEL_RWX=y
CONFIG_STRICT_KERNEL_RWX=y
CONFIG_ARCH_HAS_STRICT_MODULE_RWX=y
CONFIG_STRICT_MODULE_RWX=y

and near the end:
# CONFIG_STRICT_DEVMEM is not set

Not sure what other options are.