MTD UBI undefined reference failed to build OE gatesgarth branch

2021-01-17 Thread Jupiter
again for crossing mailing lists. Kind regards, - jupiter On 1/16/21, Andrey Zhizhikin wrote: > Hello Jupiter, > > On Fri, Jan 15, 2021 at 8:32 PM JH wrote: >> >> Hello, >> >> The mtd build was fine, what could be missing not to link mtd? >> >> $ ls

Re: [meta-freescale] MTD UBI undefined reference failed to build OE gatesgarth branch

2021-01-15 Thread Jupiter
Thanks for your response. I am sorry, I thought that is what meta-freescale for, right? NXP might involve the coding, but is it integrated and released by Yocto / OE https://git.yoctoproject.org/cgit/cgit.cgi/meta-freescale/, right? I cloned meta-freescale from Yocto project:

Re: MTD UBI undefined reference failed to build OE gatesgarth branch

2021-01-15 Thread Jupiter
On 1/15/21, Jupiter wrote: > Hello, > > I was able to build MTD, UBI and u-boot on OE version Zeus branch, but > failed in gatesgarth branch. Here are errors, what could I be missing? > > u-boot-imx/2020.04-r0/git/cmd/ubi.c:478: undefined reference to > `mtd_probe_devices' > u

Re: Issue with 'ubi part' ubi_io_read: error -74 (ECC error)

2020-05-22 Thread Jupiter
Hi Heiko, Thanks for your response. On 5/22/20, Heiko Schocher wrote: >> Are there any ways or tools in Linux to change MTD settings (most >> likely the ECC or DTB) to the same setting in u-boot? I do have mtd >> and fw_setenv in Linux. > > No for U-Boot (as I am aware of). You need to fix the

Re: Issue with 'ubi part' ubi_io_read: error -74 (ECC error)

2020-05-19 Thread Jupiter
Thanks Richard for the response. On 5/19/20, Richard Weinberger wrote: > Neither UBI nor UBIFS care about ECC. The MTD stack does. > If you write something in Linux you cannot read back in u-boot a common > problem is that u-boot and Linux use different MTD settings (layout, > ECC, etc...).

Issue with 'ubi part' ubi_io_read: error -74 (ECC error)

2020-05-17 Thread Jupiter
Sorry for a bit recalcitrant with the issue of calling 'ubi part" error -74 -EBADMSG, is it MTD issue or u-boot issue? I used Linux kernel 4.19 to flash UBIFS volume images ubi.img to imx6ull NAND using following command in Linux: flash_erase /dev/mtd2 0 0 ubiformat /dev/mtd2 -f ubi.img The

Re: What is the right way to run fw_setenv for selecting different ECC or dtb files?

2020-05-04 Thread Jupiter
Could anyone please advise how to set up dtb? In running uuu, I can set up "SDP: write -f imx6ulz-kobs.dtb -addr 0x9000", but how can I change to different dtb calling fw_setenv? Thank you and appreciate it. Kind regards, - jh On 5/3/20, Jupiter wrote: > Hi, > &

What is the right way to run fw_setenv for selecting different ECC or dtb files?

2020-05-03 Thread Jupiter
Hi, To flash u-boot to iMX6ULL NAND, it requires using higher bits ECC (my imx6ulz_kobs.dtb) to run kobs-ng in ramdisk, but to flash rootfs image to NAND in ramdisk, I have to change to use lower ECC (my imx6ulz.dtb). I followed the advice at link

Re: [yocto] Which recipe for Linux tools to run u-boot command inside Linux?

2020-05-02 Thread Jupiter
OK, finally built the u-boot-fw-utils and run it on iMX6ULL: # fw_printenv -v Compiled with U-Boot 2019.07-dirty But it could not run: # fw_printenv Cannot read bad block mark: Invalid argument Here is the configure file: # cat /etc/fw_env.config # NAND /dev/mtd1 0x40