Change kernel parameter in u-boot - solved

This forum is for topics dealing with problems with software specifically in the ARMv7h repo.

Change kernel parameter in u-boot - solved

Postby elmo » Tue Sep 01, 2015 3:14 pm

Hello,

How to pass the parameter CONFIG_LEGACY_PTYS= 2 to the kernel in u-boot?

I tried$this->bbcode_second_pass_code('', 'setenv mmcargs 'setenv bootargs ...... CONFIG_LEGACY_PTYS=2'')But it does not.
Last edited by elmo on Wed Sep 02, 2015 2:11 pm, edited 1 time in total.
elmo
 
Posts: 9
Joined: Wed Aug 12, 2015 12:27 pm

Re: Change kernel parameter in u-boot

Postby lharmon » Tue Sep 01, 2015 5:07 pm

if you are using a board which supports it, the fw_setenv is what you want.
I believe it is found in the u-boot tools package and does require some configuration before it can be used.
lharmon
 
Posts: 46
Joined: Fri Apr 19, 2013 7:30 pm

Re: Change kernel parameter in u-boot

Postby moonman » Wed Sep 02, 2015 12:29 am

What is the board? You should peobably use uEnv.txt as there is usually no environment flashed on the card/emmc.
Pogoplug V4 | GoFlex Home | Raspberry Pi 4 4GB | CuBox-i4 Pro | ClearFog | BeagleBone Black | Odroid U2 | Odroid C1 | Odroid XU4
-----------------------------------------------------------------------------------------------------------------------
[armv5] Updated U-Boot | [armv5] NAND Rescue System
moonman
Developer
 
Posts: 3388
Joined: Sat Jan 15, 2011 3:36 am

Re: Change kernel parameter in u-boot

Postby elmo » Wed Sep 02, 2015 8:31 am

$this->bbcode_second_pass_code('', 'setenv mmcargs 'setenv bootargs ...... pty.legacy_count=2'')Works

Parameter names are different than those in .debconfig
Found here
elmo
 
Posts: 9
Joined: Wed Aug 12, 2015 12:27 pm

Re: Change kernel parameter in u-boot

Postby moonman » Wed Sep 02, 2015 9:57 am

1. What is the board?
2. What debconfig? We are ArchLinux ARM
Pogoplug V4 | GoFlex Home | Raspberry Pi 4 4GB | CuBox-i4 Pro | ClearFog | BeagleBone Black | Odroid U2 | Odroid C1 | Odroid XU4
-----------------------------------------------------------------------------------------------------------------------
[armv5] Updated U-Boot | [armv5] NAND Rescue System
moonman
Developer
 
Posts: 3388
Joined: Sat Jan 15, 2011 3:36 am

Re: Change kernel parameter in u-boot

Postby elmo » Wed Sep 02, 2015 2:11 pm

Odroid U3
/proc/config.gz
elmo
 
Posts: 9
Joined: Wed Aug 12, 2015 12:27 pm

Re: Change kernel parameter in u-boot - solved

Postby moonman » Sat Sep 05, 2015 12:19 am

That is not a debconfig....
debconfig = debian
Pogoplug V4 | GoFlex Home | Raspberry Pi 4 4GB | CuBox-i4 Pro | ClearFog | BeagleBone Black | Odroid U2 | Odroid C1 | Odroid XU4
-----------------------------------------------------------------------------------------------------------------------
[armv5] Updated U-Boot | [armv5] NAND Rescue System
moonman
Developer
 
Posts: 3388
Joined: Sat Jan 15, 2011 3:36 am


Return to ARMv7h

Who is online

Users browsing this forum: No registered users and 14 guests