* storing barebox to flash /dev/nand0
@ 2010-09-10 9:01 Belisko Marek
2010-09-10 9:19 ` Abdoulaye Walsimou Gaye
` (2 more replies)
0 siblings, 3 replies; 13+ messages in thread
From: Belisko Marek @ 2010-09-10 9:01 UTC (permalink / raw)
To: barebox
Hi,
I'm porting barebox to mini2440 board. I can boot barebox from SDRAM
by loading to TEXT_BASE address.
I would like to test also booting from NAND flash but I can't find a
way how to store barebox loaded in RAM
to flash.
I try tftp barebox.bin /dev/nand0 but if failed with:
TFTP from server 10.146.1.21 ('barebox.bin' -> '/dev/nand0')
offset 0x00000200 not page aligned
write: Invalid argument
tftp failed: error -22
How can I properly store to flash?
Thank's in advance,
Marek
--
as simple and primitive as possible
-------------------------------------------------
Marek Belisko - OPEN-NANDRA
Freelance Developer
Ruska Nova Ves 219 | Presov, 08005 Slovak Republic
Tel: +421 915 052 184
skype: marekwhite
icq: 290551086
web: http://open-nandra.com
_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox
^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: storing barebox to flash /dev/nand0
2010-09-10 9:01 storing barebox to flash /dev/nand0 Belisko Marek
@ 2010-09-10 9:19 ` Abdoulaye Walsimou Gaye
2010-09-10 10:01 ` Belisko Marek
2010-09-10 9:27 ` Juergen Beisert
2010-09-10 9:27 ` Jean-Christophe PLAGNIOL-VILLARD
2 siblings, 1 reply; 13+ messages in thread
From: Abdoulaye Walsimou Gaye @ 2010-09-10 9:19 UTC (permalink / raw)
To: barebox
On 09/10/2010 11:01 AM, Belisko Marek wrote:
> Hi,
>
> I'm porting barebox to mini2440 board.
Good news, I have this board and use a fork of u-boot from
http://repo.or.cz/w/u-boot-openmoko/mini2440.git
which is not maintained any more and it is not in mainline u-boot.
> I can boot barebox from SDRAM
> by loading to TEXT_BASE address.
> I would like to test also booting from NAND flash but I can't find a
> way how to store barebox loaded in RAM
> to flash.
>
> I try tftp barebox.bin /dev/nand0 but if failed with:
>
> TFTP from server 10.146.1.21 ('barebox.bin' -> '/dev/nand0')
> offset 0x00000200 not page aligned
> write: Invalid argument
>
> tftp failed: error -22
>
> How can I properly store to flash?
>
>
I am not familiar with barebox (I discovered it recently), but you seem
to wrongly
create your nand image (think page size, eraze block size, etc...)
> Thank's in advance,
>
> Marek
>
>
Best regards,
AWG
_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox
^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: storing barebox to flash /dev/nand0
2010-09-10 9:01 storing barebox to flash /dev/nand0 Belisko Marek
2010-09-10 9:19 ` Abdoulaye Walsimou Gaye
@ 2010-09-10 9:27 ` Juergen Beisert
2010-09-10 9:53 ` Belisko Marek
2010-09-10 9:27 ` Jean-Christophe PLAGNIOL-VILLARD
2 siblings, 1 reply; 13+ messages in thread
From: Juergen Beisert @ 2010-09-10 9:27 UTC (permalink / raw)
To: barebox
Belisko Marek wrote:
> Hi,
>
> I'm porting barebox to mini2440 board. I can boot barebox from SDRAM
> by loading to TEXT_BASE address.
> I would like to test also booting from NAND flash but I can't find a
> way how to store barebox loaded in RAM
> to flash.
>
> I try tftp barebox.bin /dev/nand0 but if failed with:
>
> TFTP from server 10.146.1.21 ('barebox.bin' -> '/dev/nand0')
> offset 0x00000200 not page aligned
> write: Invalid argument
>
> tftp failed: error -22
>
> How can I properly store to flash?
Consider the bad blocks in your NAND. So, you will need a bad block aware
device to write to.
This code in your board specific init routine should add the thing:
[...]
/* ----------- add some vital partitions -------- */
devfs_add_partition("nand0", 0x00000, 0x40000, PARTITION_FIXED, "self_raw");
dev_add_bb_dev("self_raw", "self0");
devfs_add_partition("nand0", 0x40000, 0x20000, PARTITION_FIXED, "env_raw");
dev_add_bb_dev("env_raw", "env0");
[...]
(Sizes depending on the size of your boot loader binary).
And at runtime:
barebox> addpart /dev/nand0 256k(barebox)ro,128k(bareboxenv)
barebox> erase /dev/nand0.barebox.bb
barebox> tftp barebox.bin /dev/nand0.barebox.bb
jbe
--
Pengutronix e.K. | Juergen Beisert |
Linux Solutions for Science and Industry | Phone: +49-8766-939 228 |
Vertretung Sued/Muenchen, Germany | Fax: +49-5121-206917-5555 |
Amtsgericht Hildesheim, HRA 2686 | http://www.pengutronix.de/ |
_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox
^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: storing barebox to flash /dev/nand0
2010-09-10 9:01 storing barebox to flash /dev/nand0 Belisko Marek
2010-09-10 9:19 ` Abdoulaye Walsimou Gaye
2010-09-10 9:27 ` Juergen Beisert
@ 2010-09-10 9:27 ` Jean-Christophe PLAGNIOL-VILLARD
2 siblings, 0 replies; 13+ messages in thread
From: Jean-Christophe PLAGNIOL-VILLARD @ 2010-09-10 9:27 UTC (permalink / raw)
To: Belisko Marek; +Cc: barebox
On 11:01 Fri 10 Sep , Belisko Marek wrote:
> Hi,
>
> I'm porting barebox to mini2440 board. I can boot barebox from SDRAM
> by loading to TEXT_BASE address.
> I would like to test also booting from NAND flash but I can't find a
> way how to store barebox loaded in RAM
> to flash.
>
> I try tftp barebox.bin /dev/nand0 but if failed with:
>
> TFTP from server 10.146.1.21 ('barebox.bin' -> '/dev/nand0')
> offset 0x00000200 not page aligned
> write: Invalid argument
you are not supposed to write directly to nand0
but to nand0.bb
tftp barebox.bin /dev/nand0.bb
after you need a barebox that boor from NAND
Best Regards,
J.
_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox
^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: storing barebox to flash /dev/nand0
2010-09-10 9:27 ` Juergen Beisert
@ 2010-09-10 9:53 ` Belisko Marek
2010-09-10 10:30 ` Juergen Beisert
0 siblings, 1 reply; 13+ messages in thread
From: Belisko Marek @ 2010-09-10 9:53 UTC (permalink / raw)
To: Juergen Beisert; +Cc: barebox
On Fri, Sep 10, 2010 at 11:27 AM, Juergen Beisert <jbe@pengutronix.de> wrote:
> Belisko Marek wrote:
>> Hi,
>>
>> I'm porting barebox to mini2440 board. I can boot barebox from SDRAM
>> by loading to TEXT_BASE address.
>> I would like to test also booting from NAND flash but I can't find a
>> way how to store barebox loaded in RAM
>> to flash.
>>
>> I try tftp barebox.bin /dev/nand0 but if failed with:
>>
>> TFTP from server 10.146.1.21 ('barebox.bin' -> '/dev/nand0')
>> offset 0x00000200 not page aligned
>> write: Invalid argument
>>
>> tftp failed: error -22
>>
>> How can I properly store to flash?
>
> Consider the bad blocks in your NAND. So, you will need a bad block aware
> device to write to.
>
> This code in your board specific init routine should add the thing:
>
> [...]
> /* ----------- add some vital partitions -------- */
> devfs_add_partition("nand0", 0x00000, 0x40000, PARTITION_FIXED, "self_raw");
> dev_add_bb_dev("self_raw", "self0");
>
> devfs_add_partition("nand0", 0x40000, 0x20000, PARTITION_FIXED, "env_raw");
> dev_add_bb_dev("env_raw", "env0");
> [...]
OK add vital partitions but after that ls -la /dev shows:
cr-------- 4294967295 zero
crw------- 2977 defaultenv
crw------- 4294967295 mem
crw------- 268435456 nand0
cr-------- 8388608 nand_oob0
crw------- 0 ram0
crw------- 32 phy0
crw------- 262144 self_raw
crw------- 0 self0
crw------- 131072 env_raw
crw------- 131072 env0
crw------- 262144 nand0.barebox
crw------- 131072 nand0.bareboxenv
crw------- 1572864 nand0.kernel
crw------- 266469376 nand0.root
crw------- 266076160 nand0.root.bb
crw------- 1572864 nand0.kernel.bb
crw------- 131072 nand0.bareboxenv.bb
crw------- 0 nand0.barebox.bb
and storing barebox to nand0.barebox.bb report no space left.
Include startup log:
barebox 2010.09.0-00077-gf899e3f-dirty (Sep 10 2010 - 10:02:48)
Board: Mini 2440
NAND device: Manufacturer ID: 0xec, Chip ID: 0xda (Samsung NAND 256MiB
3,3V 8-bit)
Scanning device for bad blocks
Bad eraseblock 0 at 0x00000000
Bad eraseblock 1 at 0x00020000
Bad eraseblock 376 at 0x02f00000
Bad eraseblock 531 at 0x04260000
Bad eraseblock 1097 at 0x08920000
dm9000 i/o: 0x20000300, id: 0x90000a46
got MAC address from EEPROM: 00:00:00:00:00:00
refclk: 12000 kHz
mpll: 405000 kHz
upll: 48000 kHz
fclk: 405000 kHz
hclk: 101250 kHz
pclk: 50625 kHz
SDRAM1: CL4@101MHz
SDRAM2: CL4@101MHz
Malloc space: 0x31bc0000 -> 0x31fc0000 (size 4 MB)
Stack space : 0x31bb8000 -> 0x31bc0000 (size 32 kB)
envfs: wrong magic on /dev/env0
no valid environment found on /dev/env0. Using default environment
running /env/bin/init...
Hit any key to stop autoboot: 3
type update_kernel [<imagename>] to update kernel into flash
type update_root [<imagename>] to update rootfs into flash
>
> (Sizes depending on the size of your boot loader binary).
>
> And at runtime:
>
> barebox> addpart /dev/nand0 256k(barebox)ro,128k(bareboxenv)
> barebox> erase /dev/nand0.barebox.bb
> barebox> tftp barebox.bin /dev/nand0.barebox.bb
>
> jbe
>
> --
> Pengutronix e.K. | Juergen Beisert |
> Linux Solutions for Science and Industry | Phone: +49-8766-939 228 |
> Vertretung Sued/Muenchen, Germany | Fax: +49-5121-206917-5555 |
> Amtsgericht Hildesheim, HRA 2686 | http://www.pengutronix.de/ |
>
Thanks,
Marek
--
as simple and primitive as possible
-------------------------------------------------
Marek Belisko - OPEN-NANDRA
Freelance Developer
Ruska Nova Ves 219 | Presov, 08005 Slovak Republic
Tel: +421 915 052 184
skype: marekwhite
icq: 290551086
web: http://open-nandra.com
_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox
^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: storing barebox to flash /dev/nand0
2010-09-10 9:19 ` Abdoulaye Walsimou Gaye
@ 2010-09-10 10:01 ` Belisko Marek
2010-09-10 12:31 ` Abdoulaye Walsimou Gaye
2010-09-10 16:01 ` Robert Schwebel
0 siblings, 2 replies; 13+ messages in thread
From: Belisko Marek @ 2010-09-10 10:01 UTC (permalink / raw)
To: Abdoulaye Walsimou Gaye; +Cc: barebox
Hi,
On Fri, Sep 10, 2010 at 11:19 AM, Abdoulaye Walsimou Gaye
<awg@embtoolkit.org> wrote:
> On 09/10/2010 11:01 AM, Belisko Marek wrote:
>> Hi,
>>
>> I'm porting barebox to mini2440 board.
>
> Good news, I have this board and use a fork of u-boot from
> http://repo.or.cz/w/u-boot-openmoko/mini2440.git
> which is not maintained any more and it is not in mainline u-boot.
Better news ;)
I have a fork of barebox with basic support :
http://repo.or.cz/w/barebox-mini2440.git
I have some patches locally which are not in repo. I plan to push
mini2440 to mainline.
>
>> I can boot barebox from SDRAM
>> by loading to TEXT_BASE address.
>> I would like to test also booting from NAND flash but I can't find a
>> way how to store barebox loaded in RAM
>> to flash.
>>
>> I try tftp barebox.bin /dev/nand0 but if failed with:
>>
>> TFTP from server 10.146.1.21 ('barebox.bin' -> '/dev/nand0')
>> offset 0x00000200 not page aligned
>> write: Invalid argument
>>
>> tftp failed: error -22
>>
>> How can I properly store to flash?
>>
>>
>
> I am not familiar with barebox (I discovered it recently), but you seem
> to wrongly
> create your nand image (think page size, eraze block size, etc...)
>
>> Thank's in advance,
>>
>> Marek
>>
>>
>
> Best regards,
> AWG
>
>
> _______________________________________________
> barebox mailing list
> barebox@lists.infradead.org
> http://lists.infradead.org/mailman/listinfo/barebox
>
good luck,
Marek
--
as simple and primitive as possible
-------------------------------------------------
Marek Belisko - OPEN-NANDRA
Freelance Developer
Ruska Nova Ves 219 | Presov, 08005 Slovak Republic
Tel: +421 915 052 184
skype: marekwhite
icq: 290551086
web: http://open-nandra.com
_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox
^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: storing barebox to flash /dev/nand0
2010-09-10 9:53 ` Belisko Marek
@ 2010-09-10 10:30 ` Juergen Beisert
2010-09-10 10:46 ` Belisko Marek
0 siblings, 1 reply; 13+ messages in thread
From: Juergen Beisert @ 2010-09-10 10:30 UTC (permalink / raw)
To: Belisko Marek; +Cc: barebox
Marek,
Belisko Marek wrote:
> On Fri, Sep 10, 2010 at 11:27 AM, Juergen Beisert <jbe@pengutronix.de>
wrote:
> > Belisko Marek wrote:
> >> Hi,
> >>
> >> I'm porting barebox to mini2440 board. I can boot barebox from SDRAM
> >> by loading to TEXT_BASE address.
> >> I would like to test also booting from NAND flash but I can't find a
> >> way how to store barebox loaded in RAM
> >> to flash.
> >>
> >> I try tftp barebox.bin /dev/nand0 but if failed with:
> >>
> >> TFTP from server 10.146.1.21 ('barebox.bin' -> '/dev/nand0')
> >> offset 0x00000200 not page aligned
> >> write: Invalid argument
> >>
> >> tftp failed: error -22
> >>
> >> How can I properly store to flash?
> >
> > Consider the bad blocks in your NAND. So, you will need a bad block aware
> > device to write to.
> >
> > This code in your board specific init routine should add the thing:
> >
> > [...]
> > /* ----------- add some vital partitions -------- */
> > devfs_add_partition("nand0", 0x00000, 0x40000, PARTITION_FIXED,
> > "self_raw"); dev_add_bb_dev("self_raw", "self0");
> >
> > devfs_add_partition("nand0", 0x40000, 0x20000, PARTITION_FIXED,
> > "env_raw"); dev_add_bb_dev("env_raw", "env0");
> > [...]
>
> OK add vital partitions but after that ls -la /dev shows:
> [...]
Not sure if this is all right (all show the barebox partition):
> crw------- 262144 self_raw
Okay, 256 kiB
> crw------- 0 self0
Hmm, 0?
> crw------- 262144 nand0.barebox
Okay, 256 kiB
> crw------- 0 nand0.barebox.bb
Again, 0?
For the environment it looks different:
> crw------- 131072 env_raw
> crw------- 131072 env0
> crw------- 131072 nand0.bareboxenv
> crw------- 131072 nand0.bareboxenv.bb
All are 128 kiB.
jbe
--
Pengutronix e.K. | Juergen Beisert |
Linux Solutions for Science and Industry | Phone: +49-8766-939 228 |
Vertretung Sued/Muenchen, Germany | Fax: +49-5121-206917-5555 |
Amtsgericht Hildesheim, HRA 2686 | http://www.pengutronix.de/ |
_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox
^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: storing barebox to flash /dev/nand0
2010-09-10 10:30 ` Juergen Beisert
@ 2010-09-10 10:46 ` Belisko Marek
2010-09-10 11:01 ` Jean-Christophe PLAGNIOL-VILLARD
0 siblings, 1 reply; 13+ messages in thread
From: Belisko Marek @ 2010-09-10 10:46 UTC (permalink / raw)
To: Juergen Beisert; +Cc: barebox
On Fri, Sep 10, 2010 at 12:30 PM, Juergen Beisert <jbe@pengutronix.de> wrote:
> Marek,
>
> Belisko Marek wrote:
>> On Fri, Sep 10, 2010 at 11:27 AM, Juergen Beisert <jbe@pengutronix.de>
> wrote:
>> > Belisko Marek wrote:
>> >> Hi,
>> >>
>> >> I'm porting barebox to mini2440 board. I can boot barebox from SDRAM
>> >> by loading to TEXT_BASE address.
>> >> I would like to test also booting from NAND flash but I can't find a
>> >> way how to store barebox loaded in RAM
>> >> to flash.
>> >>
>> >> I try tftp barebox.bin /dev/nand0 but if failed with:
>> >>
>> >> TFTP from server 10.146.1.21 ('barebox.bin' -> '/dev/nand0')
>> >> offset 0x00000200 not page aligned
>> >> write: Invalid argument
>> >>
>> >> tftp failed: error -22
>> >>
>> >> How can I properly store to flash?
>> >
>> > Consider the bad blocks in your NAND. So, you will need a bad block aware
>> > device to write to.
>> >
>> > This code in your board specific init routine should add the thing:
>> >
>> > [...]
>> > /* ----------- add some vital partitions -------- */
>> > devfs_add_partition("nand0", 0x00000, 0x40000, PARTITION_FIXED,
>> > "self_raw"); dev_add_bb_dev("self_raw", "self0");
>> >
>> > devfs_add_partition("nand0", 0x40000, 0x20000, PARTITION_FIXED,
>> > "env_raw"); dev_add_bb_dev("env_raw", "env0");
>> > [...]
>>
>> OK add vital partitions but after that ls -la /dev shows:
>> [...]
>
> Not sure if this is all right (all show the barebox partition):
>
>> crw------- 262144 self_raw
>
> Okay, 256 kiB
>
>> crw------- 0 self0
>
> Hmm, 0?
>
>> crw------- 262144 nand0.barebox
>
> Okay, 256 kiB
>
>> crw------- 0 nand0.barebox.bb
>
> Again, 0?
>
> For the environment it looks different:
>
>> crw------- 131072 env_raw
>> crw------- 131072 env0
>> crw------- 131072 nand0.bareboxenv
>> crw------- 131072 nand0.bareboxenv.bb
>
> All are 128 kiB.
OK maybee there is mix from mtd_parts in env config with vital partitions.
I keep just vital partitions in code but result is the same:
cr-------- 4294967295 zero
crw------- 2973 defaultenv
crw------- 4294967295 mem
crw------- 268435456 nand0
cr-------- 8388608 nand_oob0
crw------- 0 ram0
crw------- 32 phy0
crw------- 262144 self_raw
crw------- 0 self0
crw------- 131072 env_raw
crw------- 131072 env0
self0 should be bb for self_raw where to store barebox. But why it has size 0?
Don't understand? Am I doing something wrong? For env it works fine.
>
> jbe
>
> --
> Pengutronix e.K. | Juergen Beisert |
> Linux Solutions for Science and Industry | Phone: +49-8766-939 228 |
> Vertretung Sued/Muenchen, Germany | Fax: +49-5121-206917-5555 |
> Amtsgericht Hildesheim, HRA 2686 | http://www.pengutronix.de/ |
>
marek
--
as simple and primitive as possible
-------------------------------------------------
Marek Belisko - OPEN-NANDRA
Freelance Developer
Ruska Nova Ves 219 | Presov, 08005 Slovak Republic
Tel: +421 915 052 184
skype: marekwhite
icq: 290551086
web: http://open-nandra.com
_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox
^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: storing barebox to flash /dev/nand0
2010-09-10 10:46 ` Belisko Marek
@ 2010-09-10 11:01 ` Jean-Christophe PLAGNIOL-VILLARD
2010-09-10 11:07 ` Belisko Marek
0 siblings, 1 reply; 13+ messages in thread
From: Jean-Christophe PLAGNIOL-VILLARD @ 2010-09-10 11:01 UTC (permalink / raw)
To: Belisko Marek; +Cc: barebox
> >
> > Okay, 256 kiB
> >
> >> crw------- 0 nand0.barebox.bb
> >
> > Again, 0?
> >
> > For the environment it looks different:
> >
> >> crw------- 131072 env_raw
> >> crw------- 131072 env0
> >> crw------- 131072 nand0.bareboxenv
> >> crw------- 131072 nand0.bareboxenv.bb
> >
> > All are 128 kiB.
> OK maybee there is mix from mtd_parts in env config with vital partitions.
> I keep just vital partitions in code but result is the same:
> cr-------- 4294967295 zero
> crw------- 2973 defaultenv
> crw------- 4294967295 mem
> crw------- 268435456 nand0
> cr-------- 8388608 nand_oob0
> crw------- 0 ram0
> crw------- 32 phy0
> crw------- 262144 self_raw
> crw------- 0 self0
> crw------- 131072 env_raw
> crw------- 131072 env0
>
> self0 should be bb for self_raw where to store barebox. But why it has size 0?
> Don't understand? Am I doing something wrong? For env it works fine.
If I understand correctly your log you have a bad block on it
Best Regards,
J.
_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox
^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: storing barebox to flash /dev/nand0
2010-09-10 11:01 ` Jean-Christophe PLAGNIOL-VILLARD
@ 2010-09-10 11:07 ` Belisko Marek
0 siblings, 0 replies; 13+ messages in thread
From: Belisko Marek @ 2010-09-10 11:07 UTC (permalink / raw)
To: Jean-Christophe PLAGNIOL-VILLARD; +Cc: barebox
On Fri, Sep 10, 2010 at 1:01 PM, Jean-Christophe PLAGNIOL-VILLARD
<plagnioj@jcrosoft.com> wrote:
>> >
>> > Okay, 256 kiB
>> >
>> >> crw------- 0 nand0.barebox.bb
>> >
>> > Again, 0?
>> >
>> > For the environment it looks different:
>> >
>> >> crw------- 131072 env_raw
>> >> crw------- 131072 env0
>> >> crw------- 131072 nand0.bareboxenv
>> >> crw------- 131072 nand0.bareboxenv.bb
>> >
>> > All are 128 kiB.
>> OK maybee there is mix from mtd_parts in env config with vital partitions.
>> I keep just vital partitions in code but result is the same:
>> cr-------- 4294967295 zero
>> crw------- 2973 defaultenv
>> crw------- 4294967295 mem
>> crw------- 268435456 nand0
>> cr-------- 8388608 nand_oob0
>> crw------- 0 ram0
>> crw------- 32 phy0
>> crw------- 262144 self_raw
>> crw------- 0 self0
>> crw------- 131072 env_raw
>> crw------- 131072 env0
>>
>> self0 should be bb for self_raw where to store barebox. But why it has size 0?
>> Don't understand? Am I doing something wrong? For env it works fine.
> If I understand correctly your log you have a bad block on it
You're right. I erase NAND again and then bad block for 0x00000000 is gone. I
can load barebox to flash. Sorry for spamming.
>
> Best Regards,
> J.
>
--
as simple and primitive as possible
-------------------------------------------------
Marek Belisko - OPEN-NANDRA
Freelance Developer
Ruska Nova Ves 219 | Presov, 08005 Slovak Republic
Tel: +421 915 052 184
skype: marekwhite
icq: 290551086
web: http://open-nandra.com
_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox
^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: storing barebox to flash /dev/nand0
2010-09-10 10:01 ` Belisko Marek
@ 2010-09-10 12:31 ` Abdoulaye Walsimou Gaye
2010-09-10 16:01 ` Robert Schwebel
1 sibling, 0 replies; 13+ messages in thread
From: Abdoulaye Walsimou Gaye @ 2010-09-10 12:31 UTC (permalink / raw)
To: Belisko Marek, barebox
On 09/10/2010 12:01 PM, Belisko Marek wrote:
> Hi,
>
> On Fri, Sep 10, 2010 at 11:19 AM, Abdoulaye Walsimou Gaye
> <awg@embtoolkit.org> wrote:
>
>> On 09/10/2010 11:01 AM, Belisko Marek wrote:
>>
>>> Hi,
>>>
>>> I'm porting barebox to mini2440 board.
>>>
>> Good news, I have this board and use a fork of u-boot from
>> http://repo.or.cz/w/u-boot-openmoko/mini2440.git
>> which is not maintained any more and it is not in mainline u-boot.
>>
> Better news ;)
> I have a fork of barebox with basic support :
> http://repo.or.cz/w/barebox-mini2440.git
>
> I have some patches locally which are not in repo. I plan to push
> mini2440 to mainline.
>
>
I will be happy to test it, please add me in the cc when you will submit
these
patches for inclusion.
Best regards,
AWG
_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox
^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: storing barebox to flash /dev/nand0
2010-09-10 10:01 ` Belisko Marek
2010-09-10 12:31 ` Abdoulaye Walsimou Gaye
@ 2010-09-10 16:01 ` Robert Schwebel
2010-09-11 11:02 ` Belisko Marek
1 sibling, 1 reply; 13+ messages in thread
From: Robert Schwebel @ 2010-09-10 16:01 UTC (permalink / raw)
To: Belisko Marek; +Cc: barebox
On Fri, Sep 10, 2010 at 12:01:40PM +0200, Belisko Marek wrote:
> Better news ;)
> I have a fork of barebox with basic support :
> http://repo.or.cz/w/barebox-mini2440.git
Even better news would be to send the patches, in order to avoid further
forks ;) After fixing the NAND issues, of course.
rsc
--
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-5555 |
_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox
^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: storing barebox to flash /dev/nand0
2010-09-10 16:01 ` Robert Schwebel
@ 2010-09-11 11:02 ` Belisko Marek
0 siblings, 0 replies; 13+ messages in thread
From: Belisko Marek @ 2010-09-11 11:02 UTC (permalink / raw)
To: Robert Schwebel; +Cc: barebox
On Fri, Sep 10, 2010 at 6:01 PM, Robert Schwebel
<robert@send-patches.org> wrote:
> On Fri, Sep 10, 2010 at 12:01:40PM +0200, Belisko Marek wrote:
>> Better news ;)
>> I have a fork of barebox with basic support :
>> http://repo.or.cz/w/barebox-mini2440.git
>
> Even better news would be to send the patches, in order to avoid further
> forks ;) After fixing the NAND issues, of course.
For sure I'll send patches if it will be finished. I make a fork
because I'm working from
more places and it good to have somewhere repo ;)
>
> rsc
> --
> 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-5555 |
>
marek
--
as simple and primitive as possible
-------------------------------------------------
Marek Belisko - OPEN-NANDRA
Freelance Developer
Ruska Nova Ves 219 | Presov, 08005 Slovak Republic
Tel: +421 915 052 184
skype: marekwhite
icq: 290551086
web: http://open-nandra.com
_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox
^ permalink raw reply [flat|nested] 13+ messages in thread
end of thread, other threads:[~2010-09-11 11:03 UTC | newest]
Thread overview: 13+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-09-10 9:01 storing barebox to flash /dev/nand0 Belisko Marek
2010-09-10 9:19 ` Abdoulaye Walsimou Gaye
2010-09-10 10:01 ` Belisko Marek
2010-09-10 12:31 ` Abdoulaye Walsimou Gaye
2010-09-10 16:01 ` Robert Schwebel
2010-09-11 11:02 ` Belisko Marek
2010-09-10 9:27 ` Juergen Beisert
2010-09-10 9:53 ` Belisko Marek
2010-09-10 10:30 ` Juergen Beisert
2010-09-10 10:46 ` Belisko Marek
2010-09-10 11:01 ` Jean-Christophe PLAGNIOL-VILLARD
2010-09-10 11:07 ` Belisko Marek
2010-09-10 9:27 ` Jean-Christophe PLAGNIOL-VILLARD
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox