* ARM kernel parameters
@ 2013-12-21 23:45 Vladimir 'φ-coder/phcoder' Serbinenko
2013-12-22 19:41 ` Leif Lindholm
0 siblings, 1 reply; 3+ messages in thread
From: Vladimir 'φ-coder/phcoder' Serbinenko @ 2013-12-21 23:45 UTC (permalink / raw)
To: The development of GRUB 2
[-- Attachment #1: Type: text/plain, Size: 1032 bytes --]
Hello, all. I've been able to boot Linux on my raspberry pi, after
fixing several bugs in loader. But for this I had to have a line like:
linux /kernel_cutdown.img dma.dmachans=0x???? bcm2708_fb.fbwidth=656
bcm2708_fb.fbheight=416 bcm2708.boardrev=0xe bcm2708.serial=0x????????
smsc95xx.macaddr=??:??:??:??:?? dwc_otg.lpm_enable=0
console=ttyAMA0,115200 kgdboc=ttyAMA0,115200 console=tty1
root=/dev/mmcblk0p2 rootfstype=ext4 rootwait
When using standard bootloader the part
dma.dmachans=0x???? bcm2708_fb.fbwidth=656 bcm2708_fb.fbheight=416
bcm2708.boardrev=0xe bcm2708.serial=0x????????
smsc95xx.macaddr=??:??:??:??:??
is added automatically. The part
dwc_otg.lpm_enable=0 console=ttyAMA0,115200 kgdboc=ttyAMA0,115200
console=tty1 root=/dev/mmcblk0p2 rootfstype=ext4 rootwait
comes from cmdline.txt.
It's not possible to tell for sure then one ends and the other starts.
Does anyone see any problem with prepending the arguments GRUB itself
received to the kernel command line on all platforms using ATAGs?
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 291 bytes --]
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: ARM kernel parameters
2013-12-21 23:45 ARM kernel parameters Vladimir 'φ-coder/phcoder' Serbinenko
@ 2013-12-22 19:41 ` Leif Lindholm
2013-12-22 20:58 ` Vladimir 'φ-coder/phcoder' Serbinenko
0 siblings, 1 reply; 3+ messages in thread
From: Leif Lindholm @ 2013-12-22 19:41 UTC (permalink / raw)
To: The development of GNU GRUB
On Sun, Dec 22, 2013 at 12:45:22AM +0100, Vladimir 'φ-coder/phcoder' Serbinenko wrote:
> Hello, all. I've been able to boot Linux on my raspberry pi, after
> fixing several bugs in loader. But for this I had to have a line like:
> linux /kernel_cutdown.img dma.dmachans=0x???? bcm2708_fb.fbwidth=656
> bcm2708_fb.fbheight=416 bcm2708.boardrev=0xe bcm2708.serial=0x????????
> smsc95xx.macaddr=??:??:??:??:?? dwc_otg.lpm_enable=0
> console=ttyAMA0,115200 kgdboc=ttyAMA0,115200 console=tty1
> root=/dev/mmcblk0p2 rootfstype=ext4 rootwait
Urgh...
> When using standard bootloader the part
> dma.dmachans=0x???? bcm2708_fb.fbwidth=656 bcm2708_fb.fbheight=416
> bcm2708.boardrev=0xe bcm2708.serial=0x????????
> smsc95xx.macaddr=??:??:??:??:??
> is added automatically. The part
> dwc_otg.lpm_enable=0 console=ttyAMA0,115200 kgdboc=ttyAMA0,115200
> console=tty1 root=/dev/mmcblk0p2 rootfstype=ext4 rootwait
> comes from cmdline.txt.
>
> It's not possible to tell for sure then one ends and the other starts.
> Does anyone see any problem with prepending the arguments GRUB itself
> received to the kernel command line on all platforms using ATAGs?
The current arm support is heavily geared towards FDT, but permits
ATAGs to be passed on unmodified. Adding the ability to modify the
command line would certainly make sense.
Making the linux command append instead of replace the command line
could make life interesting. If the u-boot bootargs happen to include
basic options such as root=, then Linux's behaviour may not be obvious.
So while potentially simplifying the life of the user, it also
increases the amount of awareness they need to have over the U-Boot/
GRUB/Linux interaction.
/
Leif
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: ARM kernel parameters
2013-12-22 19:41 ` Leif Lindholm
@ 2013-12-22 20:58 ` Vladimir 'φ-coder/phcoder' Serbinenko
0 siblings, 0 replies; 3+ messages in thread
From: Vladimir 'φ-coder/phcoder' Serbinenko @ 2013-12-22 20:58 UTC (permalink / raw)
To: grub-devel
[-- Attachment #1: Type: text/plain, Size: 2191 bytes --]
On 22.12.2013 20:41, Leif Lindholm wrote:
> On Sun, Dec 22, 2013 at 12:45:22AM +0100, Vladimir 'φ-coder/phcoder' Serbinenko wrote:
>> Hello, all. I've been able to boot Linux on my raspberry pi, after
>> fixing several bugs in loader. But for this I had to have a line like:
>> linux /kernel_cutdown.img dma.dmachans=0x???? bcm2708_fb.fbwidth=656
>> bcm2708_fb.fbheight=416 bcm2708.boardrev=0xe bcm2708.serial=0x????????
>> smsc95xx.macaddr=??:??:??:??:?? dwc_otg.lpm_enable=0
>> console=ttyAMA0,115200 kgdboc=ttyAMA0,115200 console=tty1
>> root=/dev/mmcblk0p2 rootfstype=ext4 rootwait
>
> Urgh...
>
>> When using standard bootloader the part
>> dma.dmachans=0x???? bcm2708_fb.fbwidth=656 bcm2708_fb.fbheight=416
>> bcm2708.boardrev=0xe bcm2708.serial=0x????????
>> smsc95xx.macaddr=??:??:??:??:??
>> is added automatically. The part
>> dwc_otg.lpm_enable=0 console=ttyAMA0,115200 kgdboc=ttyAMA0,115200
>> console=tty1 root=/dev/mmcblk0p2 rootfstype=ext4 rootwait
>> comes from cmdline.txt.
>>
>> It's not possible to tell for sure then one ends and the other starts.
>> Does anyone see any problem with prepending the arguments GRUB itself
>> received to the kernel command line on all platforms using ATAGs?
>
> The current arm support is heavily geared towards FDT, but permits
> ATAGs to be passed on unmodified. Adding the ability to modify the
> command line would certainly make sense.
>
And override initrd tag. That what trunk currently does: appends
parameters and overrides initrd tag.
> Making the linux command append instead of replace the command line
> could make life interesting. If the u-boot bootargs happen to include
> basic options such as root=, then Linux's behaviour may not be obvious.
But wouldn't it be overriden by later explicit parameter supplied from
command line?
> So while potentially simplifying the life of the user, it also
> increases the amount of awareness they need to have over the U-Boot/
> GRUB/Linux interaction.
>
> /
> Leif
>
> _______________________________________________
> Grub-devel mailing list
> Grub-devel@gnu.org
> https://lists.gnu.org/mailman/listinfo/grub-devel
>
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 291 bytes --]
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2013-12-22 20:58 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-12-21 23:45 ARM kernel parameters Vladimir 'φ-coder/phcoder' Serbinenko
2013-12-22 19:41 ` Leif Lindholm
2013-12-22 20:58 ` Vladimir 'φ-coder/phcoder' Serbinenko
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).