What is a more permissive kernel?

Issues and / or general discussion relating to Puppy

Moderator: Forum moderators

Post Reply
User avatar
bigpup
Moderator
Posts: 6981
Joined: Tue Jul 14, 2020 11:19 pm
Location: Earth, South Eastern U.S.
Has thanked: 903 times
Been thanked: 1520 times

What is a more permissive kernel?

Post 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?

The things you do not tell us, are usually the clue to fixing the problem.
When I was a kid, I wanted to be older.
This is not what I expected :o

User avatar
Keef
Posts: 274
Joined: Tue Dec 03, 2019 8:05 pm
Has thanked: 3 times
Been thanked: 75 times

Re: What is a more permissive kernel?

Post 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.
packetteer
Posts: 5
Joined: Fri Jul 17, 2020 11:05 am
Location: Long Island
Has thanked: 3 times

Re: What is a more permissive kernel?

Post 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
User avatar
bigpup
Moderator
Posts: 6981
Joined: Tue Jul 14, 2020 11:19 pm
Location: Earth, South Eastern U.S.
Has thanked: 903 times
Been thanked: 1520 times

Re: What is a more permissive kernel?

Post 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?

The things you do not tell us, are usually the clue to fixing the problem.
When I was a kid, I wanted to be older.
This is not what I expected :o

peterm321
Posts: 6
Joined: Sun Aug 16, 2020 12:56 am
Location: UK
Has thanked: 1 time

Re: What is a more permissive kernel?

Post 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
ozsouth
Posts: 1561
Joined: Sun Jul 12, 2020 2:38 am
Location: S.E. Australia
Has thanked: 241 times
Been thanked: 695 times

Re: What is a more permissive kernel?

Post 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.
Post Reply

Return to “Users”