Skip to contentSkip to conversation

Firmware Loading every boot?

DISCUSSION Jeshwanth 3 participants 6 messages Feb 10, 2014 – Feb 15, 2014

lore
Share & tools
lore

Jeshwanth

author
#0 lore raw

Hello List,

I came to know that, linux loads firmware for my dma everytime it boots.
But I don't understand, why it is required to load everytime it boots, don't dma holds which is loaded previously. AFAIK, firmware is a program which runs in devices.

Please correct me if I am wrong.

Thanks :)

Regards,
Jeshwanth

Sent from my HTC
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.kernelnewbies.org/pipermail/kernelnewbies/attachments/20140210/47b5685f/attachment.html

#1 lore raw

Hi Jeshwanth,

Quoted 6 lines · Jeshwanth

Hello List,

I came to know that, linux loads firmware for my dma everytime it boots. But I don't understand, why it is required to load everytime it boots, don't dma holds which is loaded previously.

Might be because it is loaded in to some volatile memory like DDR, which does not persist during reboots.

Thanks,
Arun

Quoted 10 lines

AFAIK, firmware is a program which runs in devices.

Please correct me if I am wrong.

Thanks :)

Regards,
Jeshwanth

Quoted 9 lines

Sent from my HTC

_______________________________________________
Kernelnewbies mailing list
Kernelnewbies at kernelnewbies.org
http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.kernelnewbies.org/pipermail/kernelnewbies/attachments/20140210/7f207f43/attachment.html

#2 lore raw

Hi Arun,

Thanks for the reply :)

Which means all the firmware available in /lib/firmware loads to device when device attached? (I mean to volatile memory of device)

I have one more doubt/assumption in this.

What I feel is, dynamically loading firmware is because of loading the firmware for specific platform. i.e. Windows and Linux firmware (for same device) are different, Windows loads firmware which is created for Windows, and Linux loads firmware created for Linux systems.

Please let me know whether my assumption is right :)

Quoted 38 lines · Arun KS

Hi Jeshwanth,

Quoted 6 lines · Jeshwanth

Hello List,

I came to know that, linux loads firmware for my dma everytime it boots. But I don't understand, why it is required to load everytime it boots, don't dma holds which is loaded previously.

Might be because it is loaded in to some volatile memory like DDR, which does not persist during reboots.

Thanks,
Arun

Quoted 19 lines

AFAIK, firmware is a program which runs in devices.

Please correct me if I am wrong.

Thanks :)

Regards,
Jeshwanth

Sent from my HTC

_______________________________________________
Kernelnewbies mailing list
Kernelnewbies at kernelnewbies.org
http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies

Signature · 6 lines
Regards
Jeshwanth Kumar N K
Bangalore, India
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.kernelnewbies.org/pipermail/kernelnewbies/attachments/20140210/0ff8d818/attachment.html 
#3 lore raw

Hi Jeshwanth,

Quoted 7 lines · Jeshwanth Kumar N K

Hi Arun,

Thanks for the reply :)

Which means all the firmware available in /lib/firmware loads to device when device attached? (I mean to volatile memory of device)

Quoted 7 lines

I have one more doubt/assumption in this.

What I feel is, dynamically loading firmware is because of loading the firmware for specific platform. i.e. Windows and Linux firmware (for same device) are different, Windows loads firmware which is created for Windows, and Linux loads firmware created for Linux systems.

I don't think so. These binaries will not depend on OS(windows or linux) and will be specific to your pl310 controller. PL310 is a microcontroller and the loaded firmware is a program which runs on that.
It will be hardware specific. Just like you need to create different binary for 8051, PIC or ARM.

HTH.

Thanks,
Arun

Quoted 45 lines

Please let me know whether my assumption is right :)

Quoted 11 lines · Arun KS

Hi Jeshwanth,

Quoted 6 lines · Jeshwanth

Hello List,

I came to know that, linux loads firmware for my dma everytime it boots. But I don't understand, why it is required to load everytime it boots, don't dma holds which is loaded previously.

Quoted 27 lines

Might be because it is loaded in to some volatile memory like DDR, which does not persist during reboots.

Thanks,
Arun

Quoted 19 lines

AFAIK, firmware is a program which runs in devices.

Please correct me if I am wrong.

Thanks :)

Regards,
Jeshwanth

Sent from my HTC

_______________________________________________
Kernelnewbies mailing list
Kernelnewbies at kernelnewbies.org
http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies

Quoted 5 lines

--
Regards
Jeshwanth Kumar N K
Bangalore, India

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.kernelnewbies.org/pipermail/kernelnewbies/attachments/20140211/f0f4e2a5/attachment.html

#4 lore raw
In reply to Jeshwanth

FYI, the "firmware" are loaded from flash:

http://en.wikipedia.org/wiki/Flash_memory

which means microcontroller (or microprocessor) + DMA/DDR memory + flash
are the usual makeup of an embedded system. flash are non-volatile, but
normally it is slower and cannot be executed as CPU or microncontroller
instruction. which is why you will need to load it into memory to be
executed:

http://lwn.net/Articles/135472/

cheers.

Quoted 23 lines · Jeshwanth

Hello List,

I came to know that, linux loads firmware for my dma everytime it boots. But I don't understand, why it is required to load everytime it boots, don't dma holds which is loaded previously.
AFAIK, firmware is a program which runs in devices.

Please correct me if I am wrong.

Thanks :)

Regards,
Jeshwanth

Sent from my HTC

_______________________________________________
Kernelnewbies mailing list
Kernelnewbies at kernelnewbies.org
http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies

Signature · 5 lines
Regards,
Peter Teoh
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.kernelnewbies.org/pipermail/kernelnewbies/attachments/20140214/711d7fa9/attachment.html 
#5 lore raw

Thanks Peter and Arun,

I can understand now :)

Any good documentation to understand UEFI ?

Quoted 46 lines · Peter Teoh

FYI, the "firmware" are loaded from flash:

http://en.wikipedia.org/wiki/Flash_memory

which means microcontroller (or microprocessor) + DMA/DDR memory + flash
are the usual makeup of an embedded system. flash are non-volatile, but
normally it is slower and cannot be executed as CPU or microncontroller
instruction. which is why you will need to load it into memory to be
executed:

http://lwn.net/Articles/135472/

cheers.

Quoted 14 lines · Jeshwanth

Hello List,

I came to know that, linux loads firmware for my dma everytime it boots. But I don't understand, why it is required to load everytime it boots, don't dma holds which is loaded previously.
AFAIK, firmware is a program which runs in devices.

Please correct me if I am wrong.

Thanks :)

Regards,
Jeshwanth

Quoted 9 lines

Sent from my HTC

_______________________________________________
Kernelnewbies mailing list
Kernelnewbies at kernelnewbies.org
http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies

--
Regards,
Peter Teoh

Signature · 6 lines
Regards
Jeshwanth Kumar N K
Bangalore, India
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.kernelnewbies.org/pipermail/kernelnewbies/attachments/20140216/cbd96500/attachment.html