Page 2 of 2 FirstFirst 12
Results 11 to 20 of 20

Thread: Knoppix 6.2 Boot from PXE

  1. #11
    Hi, Looks like this is a known issue.
    https://patchwork.kernel.org/patch/49056/

    Does any one if this patch is part of any of the upcoming Knoppix releases?

    Thanks,
    Krishnaprasad

  2. #12
    Quote Originally Posted by krishnaprasadk View Post
    Hi, Please ignore my previous post.

    i do see that DEVPATH is the Path under /sys at which this device's sysfs directory can be found. i saw the documentation inside Documentation/firmware_class as well. From there i understood the way kernel is calling the firmware and how it needs to be passed from the user end. per your advise, I've created a script /sbin/hotplug as below:-

    #!/bin/sh
    echo 1 > /sys/$DEVPATH/loading
    cat /lib/firmware/bnx2/$FIRMWARE > /sys/class/firmware/data
    echo 0 > /sys/$DEVPATH/loading


    Now the firmware is read while loading the module and it fails with an error message as below

    firmware 0000:05:00.0: firmware_loading_store: vmap() failed
    bnx2: Can't load firmware file "bnx2/bnx2-mips-06-4.6.16.fw"
    bnx2: probe of 0000:05:00.0 failed with error -2

    I am checking bnx2 driver code on why this failure is seen.

    Thanks,
    Krishnaprasad

    It looks like the issue that i am seeing ( i.e. while loading the bnx2 firmware, vmap() call is failed ) is a known issue. i do see the link as below and it exactly matches the error code that i am seeing.

    patchwork.kernel.org/patch/49056/

    vmap is called to load the firmware data stored in /lib/firmware/bnx2/$FIRMWARE to the kernel.

    Looks like Knoppix is not yet included the fix mentioned in the above link in the kernel that they use. So i compiled ( Changed firmware_class.c in drivers/base ) and created a new bzImage using Live CD but still i face the same error. The error is as below

    firmware 0000:05:00.0: firmware_loading_store: vmap() failed
    bnx2: Can't load firmware file "bnx2/bnx2-mips-06-4.6.16.fw"
    bnx2: probe of 0000:05:00.0 failed with error -2


    Any one have faced an error like this? i am blocked my Knoppix Booting via PXE because of this issue .. any help will be highly appreciated !

    Thank you all for your time !
    - Krishnaprasad

  3. #13
    Senior Member registered user
    Join Date
    Dec 2009
    Posts
    423
    Quote Originally Posted by krishnaprasadk View Post

    Now the firmware is read while loading the module and it fails with an error message as below

    firmware 0000:05:00.0: firmware_loading_store: vmap() failed
    bnx2: Can't load firmware file "bnx2/bnx2-mips-06-4.6.16.fw"
    bnx2: probe of 0000:05:00.0 failed with error -2

    I am checking bnx2 driver code on why this failure is seen.

    Thanks,
    Krishnaprasad
    Try this improved script ( still not the best ) :-

    Code:
    #!/bin/sh
    [ -z "$FIRMWARE" ] && exit 
    echo 1 > /sys/$DEVPATH/loading
    cat /lib/firmware/$FIRMWARE > /sys/class/firmware/data
    echo 0 > /sys/$DEVPATH/loading
    Please, this is not ***NOT*** a kernel bug or something, this is
    an ***EXPECTED*** behaviour.

    Cheers.

  4. #14
    Senior Member registered user
    Join Date
    Dec 2009
    Posts
    423
    Let me add one more note to this. Between you and a working system, it's just this shell script, how complicated it can be ?

    Please don't look any further and it is not any more complicated than this.

  5. #15
    Quote Originally Posted by kl522 View Post
    Try this improved script ( still not the best ) :-

    Code:
    #!/bin/sh
    [ -z "$FIRMWARE" ] && exit 
    echo 1 > /sys/$DEVPATH/loading
    cat /lib/firmware/$FIRMWARE > /sys/class/firmware/data
    echo 0 > /sys/$DEVPATH/loading
    Please, this is not ***NOT*** a kernel bug or something, this is
    an ***EXPECTED*** behaviour.

    Cheers.
    Hello,
    Sorry if i took a wrong route. I tried the above change that you advised in /sbin/hotplug script, but still bnx2 fails to load the firmware file. I am still seeing the error message:-

    firmware_loading_store: vmap() failed

    As far as scripting is concerned, no difficulties are there.

    since i saw a kernel forum thread which shows the exact error message, i thought of following that. Also in the 6.2 DVD, kernel source is available. There also inside drivers/base, firmware_class.c doesnt have the mutex fix that the forum is suggested to use. so I believed that i am facing the same issue.

    Now that the loading of bnx2 firmware still fails with this updated script, could you please advise on how to move forward?

    I really appreciate the help that you are providing in this issue !

    - Krishnaprasad

  6. #16
    Quote Originally Posted by kl522 View Post
    Try this improved script ( still not the best ) :-

    Code:
    #!/bin/sh
    [ -z "$FIRMWARE" ] && exit 
    echo 1 > /sys/$DEVPATH/loading
    cat /lib/firmware/$FIRMWARE > /sys/class/firmware/data
    echo 0 > /sys/$DEVPATH/loading
    Please, this is not ***NOT*** a kernel bug or something, this is
    an ***EXPECTED*** behaviour.

    Cheers.

    okay..my mistake.. instead of sending the bnx2 firmware data ( /path/$FIRMWARE ) to /sys/$DEVPATH/data, i was re-directing it to /sys/class/firmware/data.

    Now i corrected that and bootup of Knoppix 6.2 from PXE is successful using NFS share... there is not even requited to check if $FIRMWARE exists or not.

    Thanks for all your patience in helping me out on this.

    Thank you !
    Krishnaprasad

  7. #17
    Senior Member registered user
    Join Date
    Dec 2009
    Posts
    423
    Did you notice that the script initially was

    cat /lib/firmware/bnx/$FIRMWARE > /sys/class/firmware/data

    and the new script was :-

    cat /lib/firmware/$FIRMWARE > /sys/class/firmware/data


    Did you try to debug the script by changing it to :-

    #!/bin/sh
    [ -z "$FIRMWARE" ] && exit
    echo 1 > /sys/$DEVPATH/loading

    echo
    "Loading firmware /lib/firmware/$FIRMWARE" >> /tmp/log
    cat /lib/firmware/$FIRMWARE > /sys/class/firmware/data
    echo 0 > /sys/$DEVPATH/loading


    Did you check if there are indeed firmware files in your initrd.gz, which filenames are matching what are needed by the script (as appeared in /tmp/log ) ?



  8. #18
    Quote Originally Posted by kl522 View Post
    Did you notice that the script initially was

    cat /lib/firmware/bnx/$FIRMWARE > /sys/class/firmware/data

    and the new script was :-

    cat /lib/firmware/$FIRMWARE > /sys/class/firmware/data


    Did you try to debug the script by changing it to :-

    #!/bin/sh
    [ -z "$FIRMWARE" ] && exit
    echo 1 > /sys/$DEVPATH/loading

    echo
    "Loading firmware /lib/firmware/$FIRMWARE" >> /tmp/log
    cat /lib/firmware/$FIRMWARE > /sys/class/firmware/data
    echo 0 > /sys/$DEVPATH/loading


    Did you check if there are indeed firmware files in your initrd.gz, which filenames are matching what are needed by the script (as appeared in /tmp/log ) ?


    HI, not sure if you have seen the post that i posted before your reply. re-posting the required part.

    instead of sending the bnx2 firmware data ( /path/$FIRMWARE ) to /sys/$DEVPATH/data, i was re-directing it to /sys/class/firmware/data.

    Here is the final script

    #!/bin/sh
    #[ -z "$FIRMWARE" ] && exit
    echo 1 > /sys/$DEVPATH/loading
    cat /lib/firmware/$FIRMWARE > /sys/$DEVPATH/data
    echo 0 > /sys/$DEVPATH/loading

    I must thank you for your patience in guiding me for getting into a resolution. I really appreciate and sorry for the change in path that i took by seeing the kernel patch .. My bad analysis

    Thanks much !
    - Krishnaprasad

  9. #19
    Senior Member registered user
    Join Date
    Dec 2009
    Posts
    423
    Haven't I told you between you and a working system is just this shell script ?


  10. #20
    Quote Originally Posted by kl522 View Post
    Haven't I told you between you and a working system is just this shell script ?

    Yes.. My bad !! .. when i saw the error of vmap failure, i saw a matching Linux kernel posting as well talking about the same issue .. so changed my mind and went after that .. But good Experience

    Thanks !

Page 2 of 2 FirstFirst 12

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  


Oracle 7085209 LSI MegaRAID SAS 9361-8i 1GB Cache 12Gbps SAS/SATA PCIe RAID Card picture

Oracle 7085209 LSI MegaRAID SAS 9361-8i 1GB Cache 12Gbps SAS/SATA PCIe RAID Card

$28.20



Dell HBA330 12GBPS SAS Internal HBA Controller (NON-RAID) PCIe Card J7TNV 0J7TNV picture

Dell HBA330 12GBPS SAS Internal HBA Controller (NON-RAID) PCIe Card J7TNV 0J7TNV

$40.05



ACASIS 2.5/3.5 inch 2 Bay SATA USB 3.0 Hard Drive Disk HDD SSD Enclosure 4 RAID picture

ACASIS 2.5/3.5 inch 2 Bay SATA USB 3.0 Hard Drive Disk HDD SSD Enclosure 4 RAID

$58.99



LSI 9305-16i SATA SAS 12Gbs RAID Controller PCIe 3.0 x8 IT-Mode 4* 8643 SATA picture

LSI 9305-16i SATA SAS 12Gbs RAID Controller PCIe 3.0 x8 IT-Mode 4* 8643 SATA

$229.99



Inspur LSI 9300-8i Raid Card 12Gbps HBA HDD Controller High Profile IT MODE picture

Inspur LSI 9300-8i Raid Card 12Gbps HBA HDD Controller High Profile IT MODE

$15.98



ORICO Multi Bay RAID Hard Drive Enclosure USB 3.0/ Type-C For 2.5/3.5'' HDD SSDs picture

ORICO Multi Bay RAID Hard Drive Enclosure USB 3.0/ Type-C For 2.5/3.5'' HDD SSDs

$86.99



LSI MegaRAID 9361-8i 12Gbps PCIe 3 x8 SATA SAS 3 8 Port RAID + BBU & CacheVault picture

LSI MegaRAID 9361-8i 12Gbps PCIe 3 x8 SATA SAS 3 8 Port RAID + BBU & CacheVault

$39.00



Inspur LSI YZCA-00424-101 Raid Card 12Gbps HBA Controller Low Profile 9300-8i IT picture

Inspur LSI YZCA-00424-101 Raid Card 12Gbps HBA Controller Low Profile 9300-8i IT

$15.98



Lenovo 930-16i PCIe SAS RAID Controller FRU P/N: 01KN508 Tested Working picture

Lenovo 930-16i PCIe SAS RAID Controller FRU P/N: 01KN508 Tested Working

$149.99



Dell 7H4CN PERC H730P Raid Controller Mini Mono12GBPS 2GB NV Cache picture

Dell 7H4CN PERC H730P Raid Controller Mini Mono12GBPS 2GB NV Cache

$44.99