RE: at91sam9260-ek ...
> -Original Message > From: barebox [mailto:barebox-boun...@lists.infradead.org] On Behalf Of > Vanhauwaert Wouter > Sent: woensdag 5 maart 2014 10:55 > To: barebox@lists.infradead.org > Subject: at91sam9260-ek ... > > Hello, > > Is the setup for a at91sam9260-ek still functioning? > I have troubles with my nand flash. At first it boots and writes BBT-tables. > However, next boot, it won't read the BBT, and has errors with the magic on > the > environment variables. > Erase /dev/env0 and saveenv do not make a difference. > Nandtest does not give me errors... > > I'm just using the latest barebox 2014.2 and loading it on a at91sam9260-ek > through usb (sam-ba). I'm just using the plain at91sam9260ek_defconfig > loadenv /dev/env0 Gives me: Envfs: wrong magic on /dev/env0 Loadenv: I/O error ___ barebox mailing list barebox@lists.infradead.org http://lists.infradead.org/mailman/listinfo/barebox
[PATCH v2] Makefile: add target for gtags
The scripts/tags.sh file already supports the generation of gtags with GNU GLOBAL. The only thing missing is the makefile target to use it. Copy the setup from the Linux Kernel to allow usage of gtags with barebox. Signed-off-by: Steffen Trumtrar --- .gitignore |6 ++ Makefile |7 --- 2 files changed, 10 insertions(+), 3 deletions(-) diff --git a/.gitignore b/.gitignore index 1dec248..710bce0 100644 --- a/.gitignore +++ b/.gitignore @@ -70,6 +70,12 @@ series # cscope files cscope.* +# gnu global files +GPATH +GRTAGS +GSYMS +GTAGS + # patches *.patch scripts/gen_netx_image diff --git a/Makefile b/Makefile index 640e589..502e009 100644 --- a/Makefile +++ b/Makefile @@ -353,7 +353,7 @@ endif # of make so .config is not included in this case either (for *config). no-dot-config-targets := clean mrproper distclean \ -cscope TAGS tags help %docs check% \ +cscope gtags TAGS tags help %docs check% \ include/generated/version.h headers_% \ kernelrelease kernelversion @@ -986,7 +986,7 @@ MRPROPER_DIRS += include/config include2 usr/include MRPROPER_FILES += .config .config.old include/asm .version .old_version \ include/generated/autoconf.h include/generated/version.h \ include/generated/utsrelease.h include/config.h \ - Module.symvers tags TAGS cscope* + Module.symvers tags TAGS cscope* GPATH GTAGS GRTAGS GSYMS # clean - Delete most, but leave enough to build external modules # @@ -1072,6 +1072,7 @@ help: @echo ' dir/file.ko - Build module including final link' @echo ' tags/TAGS - Generate tags file for editors' @echo ' cscope - Generate cscope index' + @echo ' gtags - Generate GNU GLOBAL index' @echo '(default: $(INSTALL_HDR_PATH))' @echo '' @echo 'Static analysers' @@ -1114,7 +1115,7 @@ htmldocs: Doxyfile.version quiet_cmd_tags = GEN $@ cmd_tags = $(CONFIG_SHELL) $(srctree)/scripts/tags.sh $@ -tags TAGS cscope: FORCE +tags TAGS cscope gtags: FORCE $(call cmd,tags) -- 1.7.10.4 ___ barebox mailing list barebox@lists.infradead.org http://lists.infradead.org/mailman/listinfo/barebox
Re: [PATCH] Makefile: add target for gtags
On Wed, Mar 05, 2014 at 01:55:57PM +0200, Baruch Siach wrote: > Hi Steffen, > > On Wed, Mar 05, 2014 at 12:47:11PM +0100, Steffen Trumtrar wrote: > > The scripts/tags.sh file already supports the generation of gtags with > > GNU GLOBAL. The only thing missing is the makefile target to use it. > > > > Copy the setup from the Linux Kernel to allow usage of gtags with barebox. > > Adding gnu global generated files to top level .gitignore would be nice as > well. See kernel commit f2ac5e78928bf. Oops, yeah. Of course. I will add that. -- Pengutronix e.K. | | Industrial Linux Solutions | http://www.pengutronix.de/ | Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0| Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917- | ___ barebox mailing list barebox@lists.infradead.org http://lists.infradead.org/mailman/listinfo/barebox
Re: [PATCH] Makefile: add target for gtags
Hi Steffen, On Wed, Mar 05, 2014 at 12:47:11PM +0100, Steffen Trumtrar wrote: > The scripts/tags.sh file already supports the generation of gtags with > GNU GLOBAL. The only thing missing is the makefile target to use it. > > Copy the setup from the Linux Kernel to allow usage of gtags with barebox. Adding gnu global generated files to top level .gitignore would be nice as well. See kernel commit f2ac5e78928bf. baruch > Signed-off-by: Steffen Trumtrar > --- > Makefile |7 --- > 1 file changed, 4 insertions(+), 3 deletions(-) > > diff --git a/Makefile b/Makefile > index 640e589..502e009 100644 > --- a/Makefile > +++ b/Makefile > @@ -353,7 +353,7 @@ endif > # of make so .config is not included in this case either (for *config). > > no-dot-config-targets := clean mrproper distclean \ > - cscope TAGS tags help %docs check% \ > + cscope gtags TAGS tags help %docs check% \ >include/generated/version.h headers_% \ >kernelrelease kernelversion > > @@ -986,7 +986,7 @@ MRPROPER_DIRS += include/config include2 usr/include > MRPROPER_FILES += .config .config.old include/asm .version .old_version \ >include/generated/autoconf.h include/generated/version.h >\ >include/generated/utsrelease.h include/config.h \ > - Module.symvers tags TAGS cscope* > + Module.symvers tags TAGS cscope* GPATH GTAGS GRTAGS GSYMS > > # clean - Delete most, but leave enough to build external modules > # > @@ -1072,6 +1072,7 @@ help: > @echo ' dir/file.ko - Build module including final link' > @echo ' tags/TAGS - Generate tags file for editors' > @echo ' cscope - Generate cscope index' > + @echo ' gtags - Generate GNU GLOBAL index' > @echo '(default: $(INSTALL_HDR_PATH))' > @echo '' > @echo 'Static analysers' > @@ -1114,7 +1115,7 @@ htmldocs: Doxyfile.version > quiet_cmd_tags = GEN $@ >cmd_tags = $(CONFIG_SHELL) $(srctree)/scripts/tags.sh $@ > > -tags TAGS cscope: FORCE > +tags TAGS cscope gtags: FORCE > $(call cmd,tags) > > > -- > 1.7.10.4 -- http://baruch.siach.name/blog/ ~. .~ Tk Open Systems =}ooO--U--Ooo{= - bar...@tkos.co.il - tel: +972.2.679.5364, http://www.tkos.co.il - ___ barebox mailing list barebox@lists.infradead.org http://lists.infradead.org/mailman/listinfo/barebox
[PATCH] Makefile: add target for gtags
The scripts/tags.sh file already supports the generation of gtags with GNU GLOBAL. The only thing missing is the makefile target to use it. Copy the setup from the Linux Kernel to allow usage of gtags with barebox. Signed-off-by: Steffen Trumtrar --- Makefile |7 --- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/Makefile b/Makefile index 640e589..502e009 100644 --- a/Makefile +++ b/Makefile @@ -353,7 +353,7 @@ endif # of make so .config is not included in this case either (for *config). no-dot-config-targets := clean mrproper distclean \ -cscope TAGS tags help %docs check% \ +cscope gtags TAGS tags help %docs check% \ include/generated/version.h headers_% \ kernelrelease kernelversion @@ -986,7 +986,7 @@ MRPROPER_DIRS += include/config include2 usr/include MRPROPER_FILES += .config .config.old include/asm .version .old_version \ include/generated/autoconf.h include/generated/version.h \ include/generated/utsrelease.h include/config.h \ - Module.symvers tags TAGS cscope* + Module.symvers tags TAGS cscope* GPATH GTAGS GRTAGS GSYMS # clean - Delete most, but leave enough to build external modules # @@ -1072,6 +1072,7 @@ help: @echo ' dir/file.ko - Build module including final link' @echo ' tags/TAGS - Generate tags file for editors' @echo ' cscope - Generate cscope index' + @echo ' gtags - Generate GNU GLOBAL index' @echo '(default: $(INSTALL_HDR_PATH))' @echo '' @echo 'Static analysers' @@ -1114,7 +1115,7 @@ htmldocs: Doxyfile.version quiet_cmd_tags = GEN $@ cmd_tags = $(CONFIG_SHELL) $(srctree)/scripts/tags.sh $@ -tags TAGS cscope: FORCE +tags TAGS cscope gtags: FORCE $(call cmd,tags) -- 1.7.10.4 ___ barebox mailing list barebox@lists.infradead.org http://lists.infradead.org/mailman/listinfo/barebox
at91sam9260-ek ...
Hello, Is the setup for a at91sam9260-ek still functioning? I have troubles with my nand flash. At first it boots and writes BBT-tables. However, next boot, it won't read the BBT, and has errors with the magic on the environment variables. Erase /dev/env0 and saveenv do not make a difference. Nandtest does not give me errors... I'm just using the latest barebox 2014.2 and loading it on a at91sam9260-ek through usb (sam-ba). I'm just using the plain at91sam9260ek_defconfig My output: First boot: barebox 2014.02.0 #4 Wed Mar 5 10:39:35 CET 2014 Board: Atmel at91sam9260-ek AT91: Detected soc type: at91sam9260 AT91: Detected soc subtype: Unknown Clocks: CPU 198 MHz, master 99 MHz, main 18.432 MHz netconsole: registered as cs1 atmel_nand: Use On Flash BBT nand: NAND device: Manufacturer ID: 0xec, Chip ID: 0xda (Samsung NAND 256MiB 3,3 V 8-bit), 256MiB, page size: 2048, OOB size: 64 Bad block table not found for chip 0 Bad block table not found for chip 0 Scanning device for bad blocks Bad block table written to 0x0ffe, version 0x01 Bad block table written to 0x0ffc, version 0x01 mdio_bus: miibus0: probed macb macb0: Cadence MACB at 0xfffc4000 at91_udc at91_udc0: at91_udc version 3 May 2006 atmel_mci atmel_mci0: version: 0x210 atmel_mci atmel_mci0: registered as atmel_mci0 atmel_mci atmel_mci0: command/data timeout atmel_mci atmel_mci0: command/data timeout atmel_mci atmel_mci0: command/data timeout malloc space: 0x23b0 -> 0x23ef (size 4 MiB) envfs: wrong magic on /dev/env0 no valid environment found on /dev/env0. Using default environment running /env/bin/init... enable tty over USB Device, increase the boot delay to 16s Hit any key to stop autoboot Second boot: barebox 2014.02.0 #4 Wed Mar 5 10:39:35 CET 2014 Board: Atmel at91sam9260-ek AT91: Detected soc type: at91sam9260 AT91: Detected soc subtype: Unknown Clocks: CPU 198 MHz, master 99 MHz, main 18.432 MHz netconsole: registered as cs1 atmel_nand: Use On Flash BBT nand: NAND device: Manufacturer ID: 0xec, Chip ID: 0xda (Samsung NAND 256MiB 3,3 V 8-bit), 256MiB, page size: 2048, OOB size: 64 Bad block table found at page 131008, version 0x01 Bad block table found at page 130944, version 0x01 nand_bbt: error reading BBT mdio_bus: miibus0: probed macb macb0: Cadence MACB at 0xfffc4000 at91_udc at91_udc0: at91_udc version 3 May 2006 atmel_mci atmel_mci0: version: 0x210 atmel_mci atmel_mci0: registered as atmel_mci0 atmel_mci atmel_mci0: command/data timeout atmel_mci atmel_mci0: command/data timeout atmel_mci atmel_mci0: command/data timeout malloc space: 0x23b0 -> 0x23ef (size 4 MiB) envfs: wrong magic on /dev/env0 no valid environment found on /dev/env0. Using default environment running /env/bin/init... enable tty over USB Device, increase the boot delay to 16s Hit any key to stop autoboot ___ barebox mailing list barebox@lists.infradead.org http://lists.infradead.org/mailman/listinfo/barebox