Robert Nelson | 1 Sep 2010 14:20
Picon

Re: license for setup_sdcard.sh

On Wed, Sep 1, 2010 at 3:26 AM, Loïc Minier <loic.minier <at> linaro.org> wrote:
> On Tue, Aug 31, 2010, John Rigby wrote:
>> The Linaro project has a script that started as your setup_sdcard.sh
>> called linaro_media_create.  As part of our release process we need to
>> have licenses for our files and since our script is based on yours,
>> your choice of license affects what choices we have.  So long story
>> short, your file has no license included so care to add one or just
>> tell us what the license is so we can give our script a compatible if
>> not identical one?
>
>  And a full list of Copyright holders would be needed too; that is,
>  yourself and any other significant contributor
>
> --
> Loďc Minier
>

Sure, that's no problem guys.  I'm pretty bad at remembering to use a
license from the start (no one will ever use this script.. ;) )..  I
usually use a simple MIT/X11 license, so that should be forward
compatible with what you guys need..

I'm the primary author for most of it, if I draw the 'significant'
line before localizations.. (German(1) spelling versions of "Disk")
So that leaves one author for dealing with "/dev/mmcblk0[p]" (2)

So i'll contact Mario and hopefully get his blessing.

Regards,

(Continue reading)

Loïc Minier | 1 Sep 2010 14:38
Favicon

Re: license for setup_sdcard.sh

On Wed, Sep 01, 2010, Robert Nelson wrote:
> I'm the primary author for most of it, if I draw the 'significant'
> line before localizations..

 Ok; I added Copyright 2010 Robert Nelson <robertcnelson@...> at
 the top of our fork; thanks!

>                             (German(1) spelling versions of "Disk")

 I just removed the need for the translation in our fork of the script
 (changed "sudo sfdisk [...]" calls to "sudo LC_ALL=C sfdisk [...]")

 You might want to do the same for your script, to support any language.

> So that leaves one author for dealing with "/dev/mmcblk0[p]" (2)

 Apparently, we don't have this feature; I guess our script doesn't work
 on real MMC drives on laptops, only on USB ones.

 Our version was GPLv3 licensed; I'm not sure whether it's GPLv3+ or
 GPLv3 though.  I think it would be best to move to BSD style licensing,
 but that needs some kind of approval.  Our version is in
 lp:linaro-image-tools BTW (linaro-media-create script).

   Thanks for your help in sorting this out!
--

-- 
Loïc Minier
Robert Nelson | 1 Sep 2010 16:58
Picon

Re: license for setup_sdcard.sh

On Wed, Sep 1, 2010 at 7:38 AM, Loïc Minier <loic.minier@...> wrote:
> On Wed, Sep 01, 2010, Robert Nelson wrote:
>> I'm the primary author for most of it, if I draw the 'significant'
>> line before localizations..
>
>  Ok; I added Copyright 2010 Robert Nelson
<robertcnelson@...> at
>  the top of our fork; thanks!
>
>>                             (German(1) spelling versions of "Disk")
>
>  I just removed the need for the translation in our fork of the script
>  (changed "sudo sfdisk [...]" calls to "sudo LC_ALL=C sfdisk [...]")
>
>  You might want to do the same for your script, to support any language.

Thanks Loïc, that definitely will work alot better.  I was playing
with LANG='s this morning not have much luck, wish i was bi-lingual.
(does Canadian count?)

>
>> So that leaves one author for dealing with "/dev/mmcblk0[p]" (2)
>
>  Apparently, we don't have this feature; I guess our script doesn't work
>  on real MMC drives on laptops, only on USB ones.

Yeah i didn't run into that myself till this summer with my new laptop
with built-in mmc card..  So it'll probally come up at some point as a
bug for you guys..

(Continue reading)

Robert Nelson | 4 Dec 2010 16:06
Picon

Re: license for setup_sdcard.sh

On Wed, Sep 1, 2010 at 9:58 AM, Robert Nelson
<robertcnelson@...> wrote:
> On Wed, Sep 1, 2010 at 7:38 AM, Loïc Minier <loic.minier@...> wrote:
>> On Wed, Sep 01, 2010, Robert Nelson wrote:
>>> I'm the primary author for most of it, if I draw the 'significant'
>>> line before localizations..
>>
>>  Ok; I added Copyright 2010 Robert Nelson
<robertcnelson@...> at
>>  the top of our fork; thanks!
>>
>>>                             (German(1) spelling versions of "Disk")
>>
>>  I just removed the need for the translation in our fork of the script
>>  (changed "sudo sfdisk [...]" calls to "sudo LC_ALL=C sfdisk [...]")
>>
>>  You might want to do the same for your script, to support any language.
>
> Thanks Loïc, that definitely will work alot better.  I was playing
> with LANG='s this morning not have much luck, wish i was bi-lingual.
> (does Canadian count?)
>
>>
>>> So that leaves one author for dealing with "/dev/mmcblk0[p]" (2)
>>
>>  Apparently, we don't have this feature; I guess our script doesn't work
>>  on real MMC drives on laptops, only on USB ones.
>
> Yeah i didn't run into that myself till this summer with my new laptop
> with built-in mmc card..  So it'll probally come up at some point as a
(Continue reading)

Robert Nelson | 4 Dec 2010 18:05
Picon

Re: license for setup_sdcard.sh

On Sat, Dec 4, 2010 at 9:06 AM, Robert Nelson
<robertcnelson@...> wrote:
> On Wed, Sep 1, 2010 at 9:58 AM, Robert Nelson
<robertcnelson@...> wrote:
>> On Wed, Sep 1, 2010 at 7:38 AM, Loïc Minier <loic.minier@...> wrote:
>>> On Wed, Sep 01, 2010, Robert Nelson wrote:
>>>> I'm the primary author for most of it, if I draw the 'significant'
>>>> line before localizations..
>>>
>>>  Ok; I added Copyright 2010 Robert Nelson
<robertcnelson@...> at
>>>  the top of our fork; thanks!
>>>
>>>>                             (German(1) spelling versions of "Disk")
>>>
>>>  I just removed the need for the translation in our fork of the script
>>>  (changed "sudo sfdisk [...]" calls to "sudo LC_ALL=C sfdisk [...]")
>>>
>>>  You might want to do the same for your script, to support any language.
>>
>> Thanks Loïc, that definitely will work alot better.  I was playing
>> with LANG='s this morning not have much luck, wish i was bi-lingual.
>> (does Canadian count?)
>>
>>>
>>>> So that leaves one author for dealing with "/dev/mmcblk0[p]" (2)
>>>
>>>  Apparently, we don't have this feature; I guess our script doesn't work
>>>  on real MMC drives on laptops, only on USB ones.
>>
(Continue reading)

arnd | 4 Dec 2010 18:49
Picon
Gravatar

Re: license for setup_sdcard.sh

On Saturday 04 December 2010 18:05:03 Robert Nelson wrote:
> > Guys, just a heads up for util-linux-ng 2.18, (I've been tweaking my
> > script for Fedora 14/15 usage..)
> >
> > It looks like 'fdisk' can no longer create the new partition at sector
> > 1, (thru forcing dos compatibly mode, i can get it down to sector 62,
> > however that isn't bootable on my Bx/Cx beagles)..  I know you use
> > sfdisk, but you might run into the same issue since it's from the same
> > project..
> >
> > http://bazaar.launchpad.net/~linaro-maintainers/linaro-image-tools/linaro-image-tools/annotate/head:/linaro-media-create#L474
> >
> > I'm looking into using parted from the command line, and so far it
> > seems to be working on maverick just have to confirm on fedora..
> 
> nm  figured out a work-around with fdisk that works
> 
> "-c=dos -u=cylinders"
> 
> so you might run into it too..
> 

We really need to fix the boot loaders here. Anything that writes
to SD cards at unaligned sectors is rather broken, better make sure
that setup_sdcards always aligns the start of each partition to
multiples of 4MB from the start of the medium, and that all boot
loaders know how to deal with this!

	Arnd
(Continue reading)

Robert Nelson | 4 Dec 2010 18:55
Picon

Re: license for setup_sdcard.sh

On Sat, Dec 4, 2010 at 11:49 AM,  <arnd@...> wrote:
> On Saturday 04 December 2010 18:05:03 Robert Nelson wrote:
>> > Guys, just a heads up for util-linux-ng 2.18, (I've been tweaking my
>> > script for Fedora 14/15 usage..)
>> >
>> > It looks like 'fdisk' can no longer create the new partition at sector
>> > 1, (thru forcing dos compatibly mode, i can get it down to sector 62,
>> > however that isn't bootable on my Bx/Cx beagles)..  I know you use
>> > sfdisk, but you might run into the same issue since it's from the same
>> > project..
>> >
>> > http://bazaar.launchpad.net/~linaro-maintainers/linaro-image-tools/linaro-image-tools/annotate/head:/linaro-media-create#L474
>> >
>> > I'm looking into using parted from the command line, and so far it
>> > seems to be working on maverick just have to confirm on fedora..
>>
>> nm  figured out a work-around with fdisk that works
>>
>> "-c=dos -u=cylinders"
>>
>> so you might run into it too..
>>
>
> We really need to fix the boot loaders here. Anything that writes
> to SD cards at unaligned sectors is rather broken, better make sure
> that setup_sdcards always aligns the start of each partition to
> multiples of 4MB from the start of the medium, and that all boot
> loaders know how to deal with this!

Well, the good news, the bootloaders, x-load and u-boot do a better
(Continue reading)

Guilherme Salgado | 7 Dec 2010 14:22
Favicon
Gravatar

Re: license for setup_sdcard.sh

Hi Robert,

On Sat, 2010-12-04 at 09:06 -0600, Robert Nelson wrote:
[...]
> 
> Guys, just a heads up for util-linux-ng 2.18, (I've been tweaking my
> script for Fedora 14/15 usage..)
> 
> It looks like 'fdisk' can no longer create the new partition at sector
> 1, (thru forcing dos compatibly mode, i can get it down to sector 62,
> however that isn't bootable on my Bx/Cx beagles)..  I know you use
> sfdisk, but you might run into the same issue since it's from the same
> project..
> 
> http://bazaar.launchpad.net/~linaro-maintainers/linaro-image-tools/linaro-image-tools/annotate/head:/linaro-media-create#L474
> 
> I'm looking into using parted from the command line, and so far it
> seems to be working on maverick just have to confirm on fedora..

I know you found a workaround with fdisk so you're probably no longer
using parted, but I was wondering if you were able to use parted to
change the geometry in the partition table to 255heads/63sectors as the
boot rom seems to require?

I ask because I'm working on converting our script to python and it'd be
nice if I could use python-parted for that, but it doesn't seem to be
able to.

Cheers,

(Continue reading)

Robert Nelson | 7 Dec 2010 16:10
Picon

Re: license for setup_sdcard.sh

Hi Guilherme,

> I know you found a workaround with fdisk so you're probably no longer
> using parted, but I was wondering if you were able to use parted to
> change the geometry in the partition table to 255heads/63sectors as the
> boot rom seems to require?

Actually with current x-loader/u-boot the 255heads/63sectors isn't a
hard requirement anymore for the boot partition, so i've dropped it..

https://github.com/RobertCNelson/omap-image-builder/blob/master/tools/setup_sdcard.sh#L348

So far tested on:

Beagle B6 (oldest still booting beagle i have, any boards before that
had serial-ic overheating problems and eventually die under warrente.)
Beagle C2 & C4
Beagle xM A2

with angstrom's: MLO-beagleboard-1.44+r16 & u-boot-beagleboard-2010.03+r65

Panda A1

with mlo/u-boot from: http://gitorious.org/pandaboard

So right now i use parted to create the second partition.  We could
drop fdisk for the first, if we could figure out how to make parted
create a partition starting at the first cylinder.

For example, I've tried this and it doesn't boot:
(Continue reading)

Dave Martin | 7 Dec 2010 16:33
Favicon

Re: license for setup_sdcard.sh

Hi,

On Tue, Dec 7, 2010 at 3:10 PM, Robert Nelson
<robertcnelson@...> wrote:
> Hi Guilherme,
>
>> I know you found a workaround with fdisk so you're probably no longer
>> using parted, but I was wondering if you were able to use parted to
>> change the geometry in the partition table to 255heads/63sectors as the
>> boot rom seems to require?
>
> Actually with current x-loader/u-boot the 255heads/63sectors isn't a
> hard requirement anymore for the boot partition, so i've dropped it..
>
> https://github.com/RobertCNelson/omap-image-builder/blob/master/tools/setup_sdcard.sh#L348
>
> So far tested on:
>
> Beagle B6 (oldest still booting beagle i have, any boards before that
> had serial-ic overheating problems and eventually die under warrente.)
> Beagle C2 & C4
> Beagle xM A2
>
> with angstrom's: MLO-beagleboard-1.44+r16 & u-boot-beagleboard-2010.03+r65
>
> Panda A1
>
> with mlo/u-boot from: http://gitorious.org/pandaboard
>
> So right now i use parted to create the second partition.  We could
(Continue reading)

Guilherme Salgado | 8 Dec 2010 14:07
Favicon
Gravatar

Re: license for setup_sdcard.sh

On Tue, 2010-12-07 at 15:33 +0000, Dave Martin wrote:
> Hi,
> 
> On Tue, Dec 7, 2010 at 3:10 PM, Robert Nelson
<robertcnelson@...> wrote:
> > Hi Guilherme,
> >
> >> I know you found a workaround with fdisk so you're probably no longer
> >> using parted, but I was wondering if you were able to use parted to
> >> change the geometry in the partition table to 255heads/63sectors as the
> >> boot rom seems to require?
> >
> > Actually with current x-loader/u-boot the 255heads/63sectors isn't a
> > hard requirement anymore for the boot partition, so i've dropped it..
> >
> > https://github.com/RobertCNelson/omap-image-builder/blob/master/tools/setup_sdcard.sh#L348
> >
> > So far tested on:
> >
> > Beagle B6 (oldest still booting beagle i have, any boards before that
> > had serial-ic overheating problems and eventually die under warrente.)
> > Beagle C2 & C4
> > Beagle xM A2
> >
> > with angstrom's: MLO-beagleboard-1.44+r16 & u-boot-beagleboard-2010.03+r65
> >
> > Panda A1
> >
> > with mlo/u-boot from: http://gitorious.org/pandaboard
> >
(Continue reading)

Dave Martin | 8 Dec 2010 14:59
Favicon

Re: license for setup_sdcard.sh

On Wed, Dec 8, 2010 at 1:07 PM, Guilherme Salgado <salgado@...> wrote:
> On Tue, 2010-12-07 at 15:33 +0000, Dave Martin wrote:
>> Hi,
>>
>> On Tue, Dec 7, 2010 at 3:10 PM, Robert Nelson
<robertcnelson@...> wrote:
>> > Hi Guilherme,
>> >
>> >> I know you found a workaround with fdisk so you're probably no longer
>> >> using parted, but I was wondering if you were able to use parted to
>> >> change the geometry in the partition table to 255heads/63sectors as the
>> >> boot rom seems to require?
>> >
>> > Actually with current x-loader/u-boot the 255heads/63sectors isn't a
>> > hard requirement anymore for the boot partition, so i've dropped it..
>> >
>> > https://github.com/RobertCNelson/omap-image-builder/blob/master/tools/setup_sdcard.sh#L348
>> >
>> > So far tested on:
>> >
>> > Beagle B6 (oldest still booting beagle i have, any boards before that
>> > had serial-ic overheating problems and eventually die under warrente.)
>> > Beagle C2 & C4
>> > Beagle xM A2
>> >
>> > with angstrom's: MLO-beagleboard-1.44+r16 & u-boot-beagleboard-2010.03+r65
>> >
>> > Panda A1
>> >
>> > with mlo/u-boot from: http://gitorious.org/pandaboard
(Continue reading)

Guilherme Salgado | 7 Dec 2010 20:10
Favicon
Gravatar

Re: license for setup_sdcard.sh

On Tue, 2010-12-07 at 09:10 -0600, Robert Nelson wrote:
> Hi Guilherme,
> 
> > I know you found a workaround with fdisk so you're probably no longer
> > using parted, but I was wondering if you were able to use parted to
> > change the geometry in the partition table to 255heads/63sectors as the
> > boot rom seems to require?
> 
> Actually with current x-loader/u-boot the 255heads/63sectors isn't a
> hard requirement anymore for the boot partition, so i've dropped it..

I thought the 255h/63s requirement came from the boot ROM?

> 
> https://github.com/RobertCNelson/omap-image-builder/blob/master/tools/setup_sdcard.sh#L348
> 

I partitioned a card with the exact same commands you use in
setup_sdcard.sh (fdisk to create the boot partition and parted for the
root one), and then used our script to populate it (without changing the
partitions), but it didn't boot.  This is what I got on my xM.

        Texas Instruments X-Loader 1.4.4ss (Sep 30 2010 - 14:44:32)
        Beagle xM Rev A
        Reading boot sector
        Error: reading boot sector
        u-boot.bin not found or blank nand contents - attempting serial
        boot . . .
        ## Ready for binary (kermit) download to 0x80008000 at 115200
        bps...
(Continue reading)

Robert Nelson | 7 Dec 2010 20:36
Picon

Re: license for setup_sdcard.sh

On Tue, Dec 7, 2010 at 1:10 PM, Guilherme Salgado <salgado@...> wrote:
> On Tue, 2010-12-07 at 09:10 -0600, Robert Nelson wrote:
>> Hi Guilherme,
>>
>> > I know you found a workaround with fdisk so you're probably no longer
>> > using parted, but I was wondering if you were able to use parted to
>> > change the geometry in the partition table to 255heads/63sectors as the
>> > boot rom seems to require?
>>
>> Actually with current x-loader/u-boot the 255heads/63sectors isn't a
>> hard requirement anymore for the boot partition, so i've dropped it..
>
> I thought the 255h/63s requirement came from the boot ROM?

That was my impression to for the last couple years, but we had
discussion about it on the beagleboard group.  The rom doesn't care,
it was x-loader that was coded for sector 63..

http://www.sakoman.com/cgi-bin/gitweb.cgi?p=x-loader.git;a=commit;h=f24393836812798cac755eeaeae37112d709b09d

Discussion:

http://groups.google.com/group/beagleboard/browse_thread/thread/2a41df7801eca451/23f2921ef00c0f9e#23f2921ef00c0f9e

>
>>
>> https://github.com/RobertCNelson/omap-image-builder/blob/master/tools/setup_sdcard.sh#L348
>>
>
> I partitioned a card with the exact same commands you use in
(Continue reading)


Gmane