Building ubifs with Buildroot

All design tool related questions: compiler, assembler, linker. Embedded programming questions: assembler, C code.

Moderator: nferre

hasanijaz
Posts: 16
Joined: Fri Nov 08, 2013 10:29 am

Building ubifs with Buildroot

Tue Nov 12, 2013 9:45 pm

Hi,

I have been following the guidelines given here:
linux4sam/bin/view/Linux4SAM/BuildRoot_9x5 for sam9x5ek board.

Well everything goes well. I use the
>make menuconfig
and in the menu I load the file configs/at91sam9x5ek_defconfig and save the configuration. It has the ubifs option already selected in the filesystem images.

Once I exit the menu config I get the message:

*** End of the configuration.
*** Execute 'make' to start the build or try 'make help'.


When I make, I just get a rootfs.tar in /output/images/.
I want to get the rootfs.ubi as promised in the url above :(
AntoineC
Posts: 105
Joined: Wed Oct 03, 2012 11:33 am

Re: Building ubifs with Buildroot

Wed Nov 13, 2013 2:27 pm

In the menu
- Filesystem images
-- ubifs root filesystem
--- Compression method

Is "No compression" selected?
hasanijaz
Posts: 16
Joined: Fri Nov 08, 2013 10:29 am

Re: Building ubifs with Buildroot

Wed Nov 13, 2013 2:55 pm

No gzip is selected.

I think the config file was being taken from the main directory instead of the at91sam9x5ek_defconfig. Now I saved it to the default config file too, but I am getting this error:

>>> alsa-lib 1.0.26 Autoreconfiguring
aclocal: couldn't open directory '/home/cust/samDev/Atmel/buildroot-2013.08/output/host/usr/arm-buildroot-linux-uclibcgnueabi/sysroot/usr/share/aclocal': No such file or directory
autoreconf: /home/cust/samDev/Atmel/buildroot-2013.08/output/host/usr/bin/aclocal failed with exit status: 1
make: *** [/home/cust/samDev/Atmel/buildroot-2013.08/output/build/alsa-lib-1.0.26/.stamp_configured] Error 1


Alsa lib cannot be unselected from the menu-config. What should I do?

The directory /home/cust/samDev/Atmel/buildroot-2013.08/output/host/usr/arm-buildroot-linux-uclibcgnueabi/sysroot/usr/share/aclocal does not exist.
AntoineC
Posts: 105
Joined: Wed Oct 03, 2012 11:33 am

Re: Building ubifs with Buildroot

Wed Nov 13, 2013 3:04 pm

Use the

Code: Select all

make at91sam9x5ek_defconfig
So the .config file will be saved with your board configuration. Then run

Code: Select all

make menuconfig
Unselect ubifs compression, and then save when exiting menuconfig. Then you can run make to build the image.
hasanijaz
Posts: 16
Joined: Fri Nov 08, 2013 10:29 am

Re: Building ubifs with Buildroot

Wed Nov 13, 2013 3:11 pm

Thanks,

both commands worked.
root@mcuzone:/home/cust/samDev/Atmel/buildroot-2013.08# make at91sam9x5ek_defconfig
#
# configuration written to /home/cust/samDev/Atmel/buildroot-2013.08/.config
#
root@mcuzone:/home/cust/samDev/Atmel/buildroot-2013.08# make menuconfig


*** End of the configuration.
*** Execute 'make' to start the build or try 'make help'.
But I am still getting the same error on alsa-lib:
>> alsa-lib 1.0.26 Autoreconfiguring
aclocal: couldn't open directory '/home/cust/samDev/Atmel/buildroot-2013.08/output/host/usr/arm-buildroot-linux-uclibcgnueabi/sysroot/usr/share/aclocal': No such file or directory
autoreconf: /home/cust/samDev/Atmel/buildroot-2013.08/output/host/usr/bin/aclocal failed with exit status: 1
make: *** [/home/cust/samDev/Atmel/buildroot-2013.08/output/build/alsa-lib-1.0.26/.stamp_configured] Error 1
blue_z
Location: USA
Posts: 2094
Joined: Thu Apr 19, 2007 10:15 pm

Re: Building ubifs with Buildroot

Wed Nov 13, 2013 9:53 pm

I don't know if it's really necessary, but I would issue a `make distclean` before performing AntoineC's suggestion.

Regards

Return to “Development Tools”

Who is online

Users browsing this forum: No registered users and 1 guest