* Re: partitions (your discussion at http://lists.infradead.org)
[not found] <CABK+bQbSy874fLMu-M3Q9Wc8-r8YEus2NG9JC2s_uw47Rn80eA@mail.gmail.com>
@ 2015-08-22 20:15 ` Baruch Siach
[not found] ` <685C0643-E30B-457C-AADC-61D8AEBC00C7@gmail.com>
0 siblings, 1 reply; 2+ messages in thread
From: Baruch Siach @ 2015-08-22 20:15 UTC (permalink / raw)
To: Zoltán Sebök; +Cc: barebox
Hi Zoli,
On Fri, Aug 21, 2015 at 02:32:31PM +0200, Zoltán Sebök wrote:
> My issue is a bit different than this, but I don't know who to contact
> instead. However, the same thing is, that I get this error message...
>
> stat /dev/nand0.xload.bb: No such file or directory
>
> ...when tying to erase the MLO partition (nand0.xload.bb) of the NAND
> flash. This is from *inside a script, using this line:*
>
> cp /boot/swm/MLO /dev/nand0.xload.bb
>
> This is the first step my script does after mounting the SD card. It's
> purpose is a complete NAND flash update task.
>
> Maybe important: The script that I use for the flashing isn't starting
> directly via /env/init. Instead of that it sits on the SD card's FAT
> partition and is being invoked by another script which is located in
> /env/init.
>
> When I alter my script to your solution...
>
> cp /boot/swm/MLO /dev/nand0.xload
>
> ...it drops the same error. My script has error checking, so it stops at
> this point.
>
> Same on all other partitions:
> cp /boot/swm/barebox.bin /dev/nand0.barebox.bb
> cp /boot/swm/linuximage /dev/nand0.kernel.bb
>
> When I invoke my original flash script manually inside barebox, everything
> goes fine.
>
> So, what's the matter with barebox?
>
> I am new to linux especially learnt about barebox just a few days ago, so
> please explain in details, what to do to get this working from inside a
> script.
Make sure that the 'addpart' command runs before any other command that
attempts to access /dev/nand0.*.bb.
baruch
--
http://baruch.siach.name/blog/ ~. .~ Tk Open Systems
=}------------------------------------------------ooO--U--Ooo------------{=
- baruch@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
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: partitions (your discussion at http://lists.infradead.org)
[not found] ` <685C0643-E30B-457C-AADC-61D8AEBC00C7@gmail.com>
@ 2015-08-22 20:44 ` Baruch Siach
0 siblings, 0 replies; 2+ messages in thread
From: Baruch Siach @ 2015-08-22 20:44 UTC (permalink / raw)
To: Zoltán Sebők; +Cc: barebox
Hi Zoli,
Please keep the list on Cc.
On Sat, Aug 22, 2015 at 10:27:22PM +0200, Zoltán Sebők wrote:
> Can you please give more details? How does the syntax look like?
See the syntax at
http://www.barebox.org/doc/latest/commands/part/addpart.html.
> Assuming that this command is being executed after my scripts have run,
> there are several other scripts inside /env/init. Unfortunately, I don't
> have the device here right now to look. So, could you give me a hint, where
> to look for it, when I can get hands on the device again?
There is no standard location of that command. Just grep your /env scripts for
addpart.
baruch
> Am 22. August 2015 22:15:49 MESZ, schrieb Baruch Siach <baruch@tkos.co.il>:
> >On Fri, Aug 21, 2015 at 02:32:31PM +0200, Zoltán Sebök wrote:
> >> My issue is a bit different than this, but I don't know who to
> >contact
> >> instead. However, the same thing is, that I get this error message...
> >>
> >> stat /dev/nand0.xload.bb: No such file or directory
> >>
> >> ...when tying to erase the MLO partition (nand0.xload.bb) of the NAND
> >> flash. This is from *inside a script, using this line:*
> >>
> >> cp /boot/swm/MLO /dev/nand0.xload.bb
> >>
> >> This is the first step my script does after mounting the SD card.
> >It's
> >> purpose is a complete NAND flash update task.
> >>
> >> Maybe important: The script that I use for the flashing isn't
> >starting
> >> directly via /env/init. Instead of that it sits on the SD card's FAT
> >> partition and is being invoked by another script which is located in
> >> /env/init.
> >>
> >> When I alter my script to your solution...
> >>
> >> cp /boot/swm/MLO /dev/nand0.xload
> >>
> >> ...it drops the same error. My script has error checking, so it stops
> >at
> >> this point.
> >>
> >> Same on all other partitions:
> >> cp /boot/swm/barebox.bin /dev/nand0.barebox.bb
> >> cp /boot/swm/linuximage /dev/nand0.kernel.bb
> >>
> >> When I invoke my original flash script manually inside barebox,
> >everything
> >> goes fine.
> >>
> >> So, what's the matter with barebox?
> >>
> >> I am new to linux especially learnt about barebox just a few days
> >ago, so
> >> please explain in details, what to do to get this working from inside
> >a
> >> script.
> >
> >Make sure that the 'addpart' command runs before any other command that
> >
> >attempts to access /dev/nand0.*.bb.
> >
> >baruch
--
http://baruch.siach.name/blog/ ~. .~ Tk Open Systems
=}------------------------------------------------ooO--U--Ooo------------{=
- baruch@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
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2015-08-22 20:45 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
[not found] <CABK+bQbSy874fLMu-M3Q9Wc8-r8YEus2NG9JC2s_uw47Rn80eA@mail.gmail.com>
2015-08-22 20:15 ` partitions (your discussion at http://lists.infradead.org) Baruch Siach
[not found] ` <685C0643-E30B-457C-AADC-61D8AEBC00C7@gmail.com>
2015-08-22 20:44 ` Baruch Siach
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox