nxp-imx / imx-kobs

Tool to create and write Freescale/NXP I.MX NAND boot related boot data structure to nand flash
GNU General Public License v2.0
29 stars 26 forks source link

Very urgent question about kobs-ng #33

Open shun12a opened 9 months ago

shun12a commented 9 months ago

image

the uuu scripts: when i was used FBK: ucmd kobs-ng init -x -v --chip_0_device_path=/dev/mtd0 /tmp/u-boot-dtb.imx it will be show up

shun12a commented 9 months ago

Is there anything I didn't configure? I'm using the official kobs-ng

allenxh commented 9 months ago

Any uuu side log?

On Thu, Nov 30, 2023 at 8:50 AM shun12a @.***> wrote:

Is there anything I didn't configure? I'm using the official kobs-ng

— Reply to this email directly, view it on GitHub https://github.com/nxp-imx/imx-kobs/issues/33#issuecomment-1833932177, or unsubscribe https://github.com/notifications/unsubscribe-auth/AA54P2BKU7AXXE4KJZDCMCTYHCML3AVCNFSM6AAAAABABKCZXOVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQMZTHEZTEMJXG4 . You are receiving this because you are subscribed to this thread.Message ID: @.***>

shun12a commented 9 months ago

run shell cmd: kobs-ng dump -v /tmp/u-boot-dtb.imx mtd: partition #0 type = 4 flags = 1024 size = 536870912 erasesize = 131072 writesize = 2048 oobsize = 64 blocks = 4096 BAD: 0x1ff80000 0x1ffa0000 0x1ffc0000 0x1ffe0000 mtd: fingerprints mismatch @0:0x0 mtd: fingerprints mismatch @0:0x20000 mtd: fingerprints mismatch @0:0x40000 mtd: fingerprints mismatch @0:0x60000 mtd: NCB0 not found mtd: fingerprints mismatch @0:0x80000 mtd: fingerprints mismatch @0:0xa0000 mtd: fingerprints mismatch @0:0xc0000 mtd: fingerprints mismatch @0:0xe0000 mtd: NCB1 not found mtd: neither NCB1 or NCB2 found ERROR Unable to load boot structures run shell cmd: kobs-ng init -x -v --chip_0_device_path=/dev/mtd0 /tmp/u-boot-dtb.imx unable to create a temporary file run shell cmd: kobs-ng init -x -v --chip_0_device_path=/dev/mtd0 /tmp/u-boot-dtb.imx unable to create a temporary file

shun12a commented 9 months ago

It appears in uuu unable to create a temporary file,But the previous xml did

allenxh commented 9 months ago

Please try uuu built-in nand command “-b nand” to burn this uboot, to see if it works.

On Thu, Nov 30, 2023 at 8:59 AM shun12a @.***> wrote:

run shell cmd: kobs-ng dump -v /tmp/u-boot-dtb.imx mtd: partition #0 type = 4 flags = 1024 size = 536870912 erasesize = 131072 writesize = 2048 oobsize = 64 blocks = 4096 BAD: 0x1ff80000 0x1ffa0000 0x1ffc0000 0x1ffe0000 mtd: fingerprints mismatch @0 https://github.com/0:0x0 mtd: fingerprints mismatch @0 https://github.com/0:0x20000 mtd: fingerprints mismatch @0 https://github.com/0:0x40000 mtd: fingerprints mismatch @0 https://github.com/0:0x60000 mtd: NCB0 not found mtd: fingerprints mismatch @0 https://github.com/0:0x80000 mtd: fingerprints mismatch @0 https://github.com/0:0xa0000 mtd: fingerprints mismatch @0 https://github.com/0:0xc0000 mtd: fingerprints mismatch @0 https://github.com/0:0xe0000 mtd: NCB1 not found mtd: neither NCB1 or NCB2 found ERROR Unable to load boot structures run shell cmd: kobs-ng init -x -v --chip_0_device_path=/dev/mtd0 /tmp/u-boot-dtb.imx unable to create a temporary file run shell cmd: kobs-ng init -x -v --chip_0_device_path=/dev/mtd0 /tmp/u-boot-dtb.imx unable to create a temporary file

— Reply to this email directly, view it on GitHub https://github.com/nxp-imx/imx-kobs/issues/33#issuecomment-1833948489, or unsubscribe https://github.com/notifications/unsubscribe-auth/AA54P2E4YTGARYPX3GMRGIDYHCNOHAVCNFSM6AAAAABABKCZXOVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQMZTHE2DQNBYHE . You are receiving this because you commented.Message ID: @.***>

shun12a commented 9 months ago

built-in nand command “-b nand” will still appear image

shun12a commented 9 months ago

uuu log Found New UDC: ci_hdrc.0 ci_hdrc.0 0 ffs.utp0 [ 6.986174] file system registered run utp at /dev/usb-utp0/ep0 . uuu fastboot client 1.0.0 [built [ 7.034547] read descriptors Nov 29 2023 09:37:20] Start init[ 7.042118] read strings usb write string Start handle command [ 11.259837] configfs-gadget gadget: high-speed config #1: c run shell cmd: mount -t debugfs debugfs /sys/kernel/debug run shell cmd: flash_erase /dev/mtd0 0 0 WOpen:/tmp WOpen:/tmp/u-boot-dtb.imx run shell cmd: kobs-ng init -x -v -n nand --chip_0_device_path=/dev/mtd0 /tmp/u-boot-dtb.imx unable to create a temporary file [ 64.488170] imx-sdma 20ec000.sdma: external firmware not found, using ROM firmware [ 69.608139] cfg80211: failed to load regulatory.db

shun12a commented 9 months ago

I'm using the 2019 SDK version of MX6ULL,But I replaced kobs-ng, is it related to the version

shun12a commented 9 months ago

Do you have any ideas? There is a real urgency to this problem

allenxh commented 9 months ago

I haven't used the tmpfs, please check if the patch can fix the problem.

https://github.com/nxp-imx/imx-kobs/pull/4/commits/416df3f38ccc717bdc8ada4e4ade205fb5541bd1

On Thu, Nov 30, 2023 at 9:22 AM shun12a @.***> wrote:

Do you have any ideas? There is a real urgency to this problem

— Reply to this email directly, view it on GitHub https://github.com/nxp-imx/imx-kobs/issues/33#issuecomment-1833989137, or unsubscribe https://github.com/notifications/unsubscribe-auth/AA54P2E4LK4KNZND3CIYDRDYHCQCHAVCNFSM6AAAAABABKCZXOVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQMZTHE4DSMJTG4 . You are receiving this because you commented.Message ID: @.***>

-- Sincerely,

Han XU

shun12a commented 9 months ago

It has been solved. I hope I can have some ideas for you. I need to enter the tmp directory before I can perform burn writing

shun12a commented 9 months ago

I don't know why, but I can execute it directly in nand mode

shun12a commented 9 months ago

Thanke for your help

allenxh commented 9 months ago

Glad to help!

On Thu, Nov 30, 2023 at 10:42 PM shun12a @.***> wrote:

Thanke for your help

— Reply to this email directly, view it on GitHub https://github.com/nxp-imx/imx-kobs/issues/33#issuecomment-1835449321, or unsubscribe https://github.com/notifications/unsubscribe-auth/AA54P2C2RAF4DBW7OM52YFLYHFN5DAVCNFSM6AAAAABABKCZXOVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQMZVGQ2DSMZSGE . You are receiving this because you commented.Message ID: @.***>