Page 33 of 124

Re: New kernels

Posted: Fri Dec 23, 2022 11:22 pm
by Skateman
Merry Christmas @All

Image

Re: New kernels

Posted: Sat Dec 24, 2022 8:21 am
by xeno74
Skateman wrote: Fri Dec 23, 2022 11:22 pm Merry Christmas @All
Thank you! :-)

Re: New kernels

Posted: Tue Dec 27, 2022 2:43 pm
by xeno74
xeno74 wrote: Fri Dec 23, 2022 9:53 am Skateman gets a CRC error while loading the alpha1 and alpha2.

Code: Select all

Verifying Checksum ... Bad Data CRC
ERROR: can't get kernel image!
Could someone please test the loading of the alpha1 and alpha2?

I successfully downloaded and uncompressed the alpha1 and alpha2 and I was able to load and boot them from a FAT16 partition with U-Boot on my X5000. I was also able to load these kernels with QEMU.
I tested it with my X5000/20 today and I get the same error message. I solved the issue with loading the uImage to an other address.
  1. Code: Select all

    X5000> usb reset
    Output: ... scaning usb for storage devices... 1 Storage Device(s) found ...
  2. Code: Select all

    X5000> ls usb 0:1
  3. Code: Select all

    X5000> setenv bootargs root=LABEL=void rootdelay=5
  4. Code: Select all

    X5000> fatload usb 0:1 4000000 uImage-6.2
  5. Code: Select all

    X5000> iminfo 4000000
  6. Code: Select all

    X5000> fatload usb 0:1 1c00000 cyrus_p5020.dtb
  7. Code: Select all

    X5000> fatload usb 0:1 2000000 uinitrd-5.10
  8. Code: Select all

    X5000> bootm 4000000 2000000 1c00000

Re: New kernels

Posted: Wed Dec 28, 2022 9:48 pm
by caseycullen
I also receive the "Bad CRC" error in U-Boot when trying to load kernel 6.2 alpha 2 on my X5000/20. However, setting the address to 4000000 as Christian described worked.
-Casey

Re: New kernels

Posted: Thu Dec 29, 2022 11:11 am
by xeno74
That's strange. The RC1 boots without any problems on my X5000/20 with the following commands:
  1. Code: Select all

    X5000> usb reset
    Output: ... scaning usb for storage devices... 1 Storage Device(s) found ...
  2. Code: Select all

    X5000> setenv bootargs root=/dev/sdb2 rootdelay=5
  3. Code: Select all

    X5000> fatload usb 0:1 1000000 uImage-6.2
  4. Code: Select all

    X5000> fatload usb 0:1 2000000 cyrus_p5020.dtb
  5. Code: Select all

    X5000> bootm 1000000 - 2000000
Or with an initial ramdisk:
  1. Code: Select all

    X5000> usb reset
    Output: ... scaning usb for storage devices... 1 Storage Device(s) found ...
  2. Code: Select all

    X5000> setenv bootargs root=LABEL=void rootdelay=5
  3. Code: Select all

    X5000> fatload usb 0:1 1000000 uImage-6.2
  4. Code: Select all

    X5000> fatload usb 0:1 2000000 cyrus_p5020.dtb
  5. Code: Select all

    X5000> fatload usb 0:1 4000000 uinitrd-5.10
  6. Code: Select all

    X5000> iminfo
  7. Code: Select all

    X5000> bootm 1000000 4000000 2000000

Re: New kernels

Posted: Thu Dec 29, 2022 12:31 pm
by Skateman
caseycullen wrote: Wed Dec 28, 2022 9:48 pm I also receive the "Bad CRC" error in U-Boot when trying to load kernel 6.2 alpha 2 on my X5000/20. However, setting the address to 4000000 as Christian described worked.
-Casey
Thats correct, but the DTB will not be loaded correctly and the onboard NIC will not be adressed correctly and is disabled.
There still is something wong....

Re: New kernels

Posted: Thu Dec 29, 2022 12:48 pm
by xeno74
Skateman wrote: Thu Dec 29, 2022 12:31 pm Thats correct, but the DTB will not be loaded correctly and the onboard NIC will not be adressed correctly and is disabled.
There still is something wong....
Could you please test the following commands?
  1. Code: Select all

    X5000> fatload mmc 0:1 1000000 uImage-6.2
  2. Code: Select all

    X5000> fatload mmc 0:1 2000000 cyrus_p5020.dtb
  3. Code: Select all

    X5000> bootm 1000000 - 2000000
Or with an initial ramdisk:
  1. Code: Select all

    X5000> fatload mmc 0:1 1000000 uImage-6.2
  2. Code: Select all

    X5000> fatload mmc 0:1 2000000 cyrus_p5020.dtb
  3. Code: Select all

    X5000> fatload mmc 0:1 4000000 uinitrd-5.10
  4. Code: Select all

    X5000> iminfo
  5. Code: Select all

    X5000> bootm 1000000 4000000 2000000

Re: New kernels

Posted: Thu Dec 29, 2022 1:07 pm
by xeno74

Re: New kernels

Posted: Thu Dec 29, 2022 4:04 pm
by xeno74
OK, I have a hint because of the CRC error and DPAA issue.

Kernel 6.1 final. No CRC error and no DPAA issue:

Code: Select all

[    3.016487] fsl_dpaa_mac ffe4e8000.ethernet: FMan dTSEC version: 0x08240101
[    3.016862] fsl_dpaa_mac ffe4e8000.ethernet: FMan MAC address: 00:04:a3:6b:41:65
[    3.017133] fsl_dpaa_mac ffe4f0000.ethernet: of_get_mac_address(/soc@ffe000000/fman@400000/ethernet@f0000) failed
[    3.017346] fsl_dpaa_mac ffe4f0000.ethernet: of_get_phy_mode() for /soc@ffe000000/fman@400000/ethernet@f0000 failed. Defaulting to SGMII
[    3.017570] fsl_dpaa_mac: 10G MAC driver only support 10G speed
[    3.017668] fsl_dpaa_mac ffe4f0000.ethernet: mac_dev->init() = -22
[    3.017767] fsl_dpaa_mac: probe of ffe4f0000.ethernet failed with error -22
[    3.017975] fsl_dpaa_mac ffe5e8000.ethernet: FMan dTSEC version: 0x08240101
[    3.018316] fsl_dpaa_mac ffe5e8000.ethernet: FMan MAC address: 00:1e:c0:f8:01:59
[    3.018566] fsl_dpaa_mac ffe5f0000.ethernet: of_get_mac_address(/soc@ffe000000/fman@500000/ethernet@f0000) failed
[    3.018785] fsl_dpaa_mac ffe5f0000.ethernet: of_get_phy_mode() for /soc@ffe000000/fman@500000/ethernet@f0000 failed. Defaulting to SGMII
[    3.019016] fsl_dpaa_mac: 10G MAC driver only support 10G speed
[    3.019113] fsl_dpaa_mac ffe5f0000.ethernet: mac_dev->init() = -22
[    3.019212] fsl_dpaa_mac: probe of ffe5f0000.ethernet failed with error -22
[    3.021614] fsl_dpaa_mac ffe4e8000.ethernet eth0: Probed interface eth0
[    3.023900] fsl_dpaa_mac ffe5e8000.ethernet eth1: Probed interface eth1
Kernel 6.2-rc1 with CRC error and DPAA issue:

Code: Select all

[    3.016644] fsl_dpaa_mac ffe4e8000.ethernet: error -EINVAL: TBI PCS node is not available
[    3.016804] fsl_dpaa_mac: probe of ffe4e8000.ethernet failed with error -22
[    3.016989] fsl_dpaa_mac ffe4f0000.ethernet: of_get_mac_address(/soc@ffe000000/fman@400000/ethernet@f0000) failed
[    3.017210] fsl_dpaa_mac ffe4f0000.ethernet: of_get_phy_mode() for /soc@ffe000000/fman@400000/ethernet@f0000 failed. Defaulting to SGMII
[    3.017442] fsl_dpaa_mac: FMan XGEC version: 0x00010330
[    3.017706] fsl_dpaa_mac ffe5e8000.ethernet: error -EINVAL: TBI PCS node is not available
[    3.017844] fsl_dpaa_mac: probe of ffe5e8000.ethernet failed with error -22
[    3.018026] fsl_dpaa_mac ffe5f0000.ethernet: of_get_mac_address(/soc@ffe000000/fman@500000/ethernet@f0000) failed
[    3.018248] fsl_dpaa_mac ffe5f0000.ethernet: of_get_phy_mode() for /soc@ffe000000/fman@500000/ethernet@f0000 failed. Defaulting to SGMII
[    3.018476] fsl_dpaa_mac: FMan XGEC version: 0x00010330
[    3.020561] fsl_dpaa_mac ffe4f0000.ethernet: Using random MAC address: 6e:06:f4:54:9f:bf
[    3.021882] fsl_dpaa_mac ffe4f0000.ethernet eth0: Probed interface eth0
[    3.023828] fsl_dpaa_mac ffe5f0000.ethernet: Using random MAC address: ea:96:eb:45:0a:a2
[    3.025153] fsl_dpaa_mac ffe5f0000.ethernet eth1: Probed interface eth1
I don't know what the reason is but I think the kernel 6.1 output is the correct one. With these outputs I can try a bisect. I would like to know which commit is responsible for the second output.

Re: New kernels

Posted: Thu Dec 29, 2022 4:43 pm
by Skateman
Let me know if you want to bisect so i can help you testing the kernels needed.

Dave