Re: [Gta04-owner] Antwort: Re: QtMoko reloaded

2018-03-01 Thread Andreas Kemnade
Hi,

On Thu, 1 Mar 2018 19:16:43 +0100
"H. Nikolaus Schaller"  wrote:
 
> > Maybe makesd also should display a list what it wants to do
> > asking for final confirmation  
> 
> No, that is a barrier for easy useage.
> 
Depends on the amount of information you display.
Not every detail like which kernel, etc.
If you quickly see wrong things, like an unusual size,
it can be helpful. If your qtmoko partition will
be of 1000GB size, you would probably abort.

Or you can print model name of the device.

So just enough information to ring alarm bells but
not too much that you do not see critical things

Maybe that confirmation will be only enabled if
.makesd.conf is not available. So it does not break
you mass-production of production-test sdcards.

Regards,
Andreas


pgpAC2UnwougW.pgp
Description: OpenPGP digital signature
___
Gta04-owner mailing list
Gta04-owner@goldelico.com
http://lists.goldelico.com/mailman/listinfo.cgi/gta04-owner


Re: [Gta04-owner] Antwort: Antwort: Re: QtMoko reloaded

2018-03-01 Thread H. Nikolaus Schaller
Hi Andreas and Sven,

> Am 01.03.2018 um 18:01 schrieb Andreas Kemnade :
> 
> Hi Sven,
> 
> Reason is probably:
> 
> sudo does not pass the variables on (security reasons,
> you could do funny things).
> So makesd did not know about your DEV=/dev/sdg
> 
> makesd should simply have no default for DEV
> and not do anything if not set.

Well, it has to have some default because if you make 20 sd cards
per day, every keystroke counts. And in 19 times you type
/dev/sdg correctly and then you mistype /dev/sdh + Enter.

So it needs some default you do not have to think about too much.

There is already a secondary default which reads the file ~/.makesd.conf
to set such a default. And the /dev/sdc is only used if that file
does not exist or is empty.

I have already updated the documentation page because that
feature is available for a while.

And we can simply replace the final /dev/sdc default by /dev/null...

> Regards,
> Andreas
> 
> On Thu, 1 Mar 2018 17:45:25 +0100
> Sven Dyroff  wrote:
> 
>> Hello Nikolaus,
>> 
>> correction:
>> 
>>   I had an external hard disc "/dev/sdc" and the rootfs had been written
>> to there instead to "/dev/sdg"!!!
>> 
>>   SD card is still empty and the data of the external hard disc is
>> lost!!!

Oh, sorry.

It was warned in the description to take care, but that hint doesn't help
of course if it is too late. It may help others reading this mail.

I hope you have a backup.

BR,
Nikolaus

>> 
>> Best regards
>>   Sven
>> 
>> 
>> 
>> 
>> Von:Sven Dyroff 
>> An: List for communicating with real GTA04 owners
>> 
>> Datum:  01.03.2018 17:32
>> Betreff:[Gta04-owner] Antwort: Re:  QtMoko reloaded
>> Gesendet von:   "Gta04-owner" 
>> 
>> 
>> 
>> Hello Nikolaus,
>> 
>>> Hm. Do you have a non-whitespace white space? Happens sometimes when
>> copying UTF charactersto a terminal.
>> 
>> Ok, after typing the command by hand I got the error that I have no rights
>> to do that. So modified the command once again:
>> 
>>DEV=/dev/sdg sudo ./makesd qtmoko -r
>> http://download.goldelico.com/letux-debian-rootfs/20180224-wheezy-7.11-armhf-qtmoko.tbz
>> 
>> 
>> Now it worked and created the SD card.
>> 
>> But please note that in the end I got:
>> 
>> -%<--
>> 
>> 
>> rmdir: konnte '/media/P2' nicht entfernen: Datei oder Verzeichnis nicht
>> gefunden
>> rmdir: konnte '/media/P3' nicht entfernen: Datei oder Verzeichnis nicht
>> gefunden
>> rmdir: konnte '/media/P4' nicht entfernen: Datei oder Verzeichnis nicht
>> gefunden
>> fsck von util-linux 2.27.1
>> rootfs: 26693/7331840 Dateien (7.1% nicht zusammenhängend),
>> 650288/29305190 Blöcke
>> fsck von util-linux 2.27.1
>> fsck.ext2: Datei oder Verzeichnis nicht gefunden beim Versuch, /dev/sdc2
>> zu öffnen
>> Ist das Gerät möglicherweise nicht vorhanden?
>> fsck von util-linux 2.27.1
>> fsck.ext2: Datei oder Verzeichnis nicht gefunden beim Versuch, /dev/sdc3
>> zu öffnen
>> Ist das Gerät möglicherweise nicht vorhanden?
>> fsck von util-linux 2.27.1
>> fsck.ext2: Datei oder Verzeichnis nicht gefunden beim Versuch, /dev/sdc4
>> zu öffnen
>> Ist das Gerät möglicherweise nicht vorhanden?
>> 
>> ->%--
>> 
>> 
>> Accessing "/dev/sdc" is completely wrong and luckily I had no
>> "/dev/sdc" that could be erased! The same is true for "/media/P"!
>> 
>> Furthermore: Why "fsck.ext2"? My QtMoko v55 and v57 SD cards had already
>> been formatted with "fsck.ext4". So even "fsck.ext3" would have been
>> outdated.
>> 
>> Best regards
>>   Sven
>> 
>>___
>> Gta04-owner mailing list
>> Gta04-owner@goldelico.com
>> http://lists.goldelico.com/mailman/listinfo.cgi/gta04-owner
>> 
> 
> ___
> Gta04-owner mailing list
> Gta04-owner@goldelico.com
> http://lists.goldelico.com/mailman/listinfo.cgi/gta04-owner



signature.asc
Description: Message signed with OpenPGP using GPGMail
___
Gta04-owner mailing list
Gta04-owner@goldelico.com
http://lists.goldelico.com/mailman/listinfo.cgi/gta04-owner


Re: [Gta04-owner] Antwort: Re: QtMoko reloaded

2018-03-01 Thread Andreas Kemnade
On Thu, 1 Mar 2018 18:48:30 +0100
"H. Nikolaus Schaller"  wrote:

> > 
> > Accessing "/dev/sdc" is completely wrong and luckily I had no "/dev/sdc" 
> > that could be erased! The same is true for "/media/P"!   
> 
> Well, it is impossible to perfectly prevent erasing the wrong device, because 
> only the user can know what the SD card reader with an SD really is.
> So it is equally risky as calling fdisk directly.
> 
No,
if you call fdisk you see what disk you use.
Here Sven thought, makesd would access /dev/sdg
but did access /dev/sdc!

That is a different thing.
fdisk does not do any writes when it is called without a device name to
work on!
makesd does.

Sven's sudo construction is just equal to calling
makesd *without* DEV set!!!

In that case makesd should not take a predefined device.

Maybe makesd also should display a list what it wants to do
asking for final confirmation

The best thing would be to call makesd from NAND with a graphical
interface.

> There is at least one protection: you can't overwrite /dev/sda.
> 
> What you could do is to just sudo chmod o+rw /dev/your-sd-reader
> but I am not sure what happens with newly created partitions.
> 
No, that would not work, because you want to mount the device and
create device nodes on it, which would require root privileges again.

Regards,
Andreas


pgpp_pifJLwea.pgp
Description: OpenPGP digital signature
___
Gta04-owner mailing list
Gta04-owner@goldelico.com
http://lists.goldelico.com/mailman/listinfo.cgi/gta04-owner


Re: [Gta04-owner] Antwort: Re: QtMoko reloaded

2018-03-01 Thread H. Nikolaus Schaller
Hi,

> Am 01.03.2018 um 17:31 schrieb Sven Dyroff :
> 
> Hello Nikolaus, 
> 
> > Hm. Do you have a non-whitespace white space? Happens sometimes when 
> > copying UTF charactersto a terminal. 
> 
> Ok, after typing the command by hand I got the error that I have no rights to 
> do that. So modified the command once again: 
> 
> DEV=/dev/sdg sudo ./makesd qtmoko -r 
> http://download.goldelico.com/letux-debian-rootfs/20180224-wheezy-7.11-armhf-qtmoko.tbz
>  
> 
>  

Ah, ok. Well, it seems to protect the user :)

I usually use an SD card reader of some SBC where I did ssh root access to so I 
never thought
about needing sudo.

Maybe we should add a check that you really have write access to the specified 
device.

> 
> Now it worked and created the SD card. 

Fine!

> 
> But please note that in the end I got: 
> 
> -%<-- 
> 
> rmdir: konnte '/media/P2' nicht entfernen: Datei oder Verzeichnis nicht 
> gefunden 
> rmdir: konnte '/media/P3' nicht entfernen: Datei oder Verzeichnis nicht 
> gefunden 
> rmdir: konnte '/media/P4' nicht entfernen: Datei oder Verzeichnis nicht 
> gefunden 
> fsck von util-linux 2.27.1 
> rootfs: 26693/7331840 Dateien (7.1% nicht zusammenhängend), 650288/29305190 
> Blöcke 
> fsck von util-linux 2.27.1 
> fsck.ext2: Datei oder Verzeichnis nicht gefunden beim Versuch, /dev/sdc2 zu 
> öffnen 
> Ist das Gerät möglicherweise nicht vorhanden? 
> fsck von util-linux 2.27.1 
> fsck.ext2: Datei oder Verzeichnis nicht gefunden beim Versuch, /dev/sdc3 zu 
> öffnen 
> Ist das Gerät möglicherweise nicht vorhanden? 
> fsck von util-linux 2.27.1 
> fsck.ext2: Datei oder Verzeichnis nicht gefunden beim Versuch, /dev/sdc4 zu 
> öffnen 
> Ist das Gerät möglicherweise nicht vorhanden? 
> 
> ->%-- 

That is a harmless and known bug. The script is not completely checking 
everything. So these warnings are not prevented.

> 
> Accessing "/dev/sdc" is completely wrong and luckily I had no "/dev/sdc" 
> that could be erased! The same is true for "/media/P"! 

Well, it is impossible to perfectly prevent erasing the wrong device, because 
only the user can know what the SD card reader with an SD really is.
So it is equally risky as calling fdisk directly.

There is at least one protection: you can't overwrite /dev/sda.

What you could do is to just sudo chmod o+rw /dev/your-sd-reader
but I am not sure what happens with newly created partitions.

> 
> Furthermore: Why "fsck.ext2"? My QtMoko v55 and v57 SD cards had already been 
> formatted with "fsck.ext4". So even "fsck.ext3" would have been outdated. 

No idea. The script only calls fsck.ext3. Seems to be a bug in util-linux 
2.27.1 when printing the error message.
On my system, there are symlinks:

root@letux:~# ls -l /sbin/fsck.ext*
lrwxrwxrwx 1 root root 6 Dec 31  2016 /sbin/fsck.ext2 -> e2fsck
lrwxrwxrwx 1 root root 6 Dec 31  2016 /sbin/fsck.ext3 -> e2fsck
lrwxrwxrwx 1 root root 6 Dec 31  2016 /sbin/fsck.ext4 -> e2fsck
lrwxrwxrwx 1 root root 6 Dec 31  2016 /sbin/fsck.ext4dev -> e2fsck
root@letux:~# 

which means they are all the same independently of the ext2/3/4 suffix... One 
size fits all :)

Anyways, this is just a safety check for a freshly created partition. So it 
should normally pass and
does not need to be perfect. It fails only if you have a broken SD card or SD 
card reader which
pretends to have written data...

So I will prepare patches for both issues reported above. They will be 
available in some
days (after I have tested them).

Thanks for feedback about makesd. It can only become better :)

BR,
Nikolaus

___
Gta04-owner mailing list
Gta04-owner@goldelico.com
http://lists.goldelico.com/mailman/listinfo.cgi/gta04-owner


[Gta04-owner] [PATCH] makesd: device safety check

2018-03-01 Thread Andreas Kemnade
do not automatically use /dev/sdc if no device is specified
instead print usage and an error message.

Signed-off-by: Andreas Kemnade 
---
 makesd | 7 ++-
 1 file changed, 6 insertions(+), 1 deletion(-)

diff --git a/makesd b/makesd
index 16767c8..4b0e6c4 100755
--- a/makesd
+++ b/makesd
@@ -15,7 +15,6 @@ CMDLINE="$0 $@"   # save how makesd was called
 [ "$VARIANT" ] || VARIANT=latest
 [ "$ARCHITECTURE" ] || ARCHITECTURE=-armhf
 [ "$DEV" ] || DEV="$(cat ~/.makesd.conf 2>/dev/null)"
-[ "$DEV" ] || DEV=/dev/sdc
 
 function macros()
 {
@@ -483,6 +482,12 @@ echo sfdisk version: $SFVER $(version $SFVER) >&2
 }
 
 ### here starts real processing ###
+if [ ! "$DEV" ] 
+then
+   useage
+   echo "Error: No device specified, cannot continue"
+   exit 1
+fi
 
 for TOOL in sfdisk fdisk partprobe dd mkfs.vfat mke2fs fsck.vfat fsck.ext3 fsck
 do
-- 
2.11.0

___
Gta04-owner mailing list
Gta04-owner@goldelico.com
http://lists.goldelico.com/mailman/listinfo.cgi/gta04-owner


Re: [Gta04-owner] Antwort: Antwort: Re: QtMoko reloaded

2018-03-01 Thread Andreas Kemnade
Hi Sven,

Reason is probably:

sudo does not pass the variables on (security reasons,
you could do funny things).
So makesd did not know about your DEV=/dev/sdg

makesd should simply have no default for DEV
and not do anything if not set.

Regards,
Andreas

On Thu, 1 Mar 2018 17:45:25 +0100
Sven Dyroff  wrote:

> Hello Nikolaus,
> 
> correction:
> 
>I had an external hard disc "/dev/sdc" and the rootfs had been written 
> to there instead to "/dev/sdg"!!!
> 
>SD card is still empty and the data of the external hard disc is 
> lost!!!
> 
> Best regards
>Sven
>  
>  
> 
> 
> Von:Sven Dyroff 
> An: List for communicating with real GTA04 owners 
> 
> Datum:  01.03.2018 17:32
> Betreff:[Gta04-owner] Antwort: Re:  QtMoko reloaded
> Gesendet von:   "Gta04-owner" 
> 
> 
> 
> Hello Nikolaus, 
> 
> > Hm. Do you have a non-whitespace white space? Happens sometimes when   
> copying UTF charactersto a terminal. 
> 
> Ok, after typing the command by hand I got the error that I have no rights 
> to do that. So modified the command once again: 
> 
> DEV=/dev/sdg sudo ./makesd qtmoko -r 
> http://download.goldelico.com/letux-debian-rootfs/20180224-wheezy-7.11-armhf-qtmoko.tbz
>  
> 
> 
> Now it worked and created the SD card. 
> 
> But please note that in the end I got: 
> 
> -%<-- 
> 
> 
> rmdir: konnte '/media/P2' nicht entfernen: Datei oder Verzeichnis nicht 
> gefunden 
> rmdir: konnte '/media/P3' nicht entfernen: Datei oder Verzeichnis nicht 
> gefunden 
> rmdir: konnte '/media/P4' nicht entfernen: Datei oder Verzeichnis nicht 
> gefunden 
> fsck von util-linux 2.27.1 
> rootfs: 26693/7331840 Dateien (7.1% nicht zusammenhängend), 
> 650288/29305190 Blöcke 
> fsck von util-linux 2.27.1 
> fsck.ext2: Datei oder Verzeichnis nicht gefunden beim Versuch, /dev/sdc2 
> zu öffnen 
> Ist das Gerät möglicherweise nicht vorhanden? 
> fsck von util-linux 2.27.1 
> fsck.ext2: Datei oder Verzeichnis nicht gefunden beim Versuch, /dev/sdc3 
> zu öffnen 
> Ist das Gerät möglicherweise nicht vorhanden? 
> fsck von util-linux 2.27.1 
> fsck.ext2: Datei oder Verzeichnis nicht gefunden beim Versuch, /dev/sdc4 
> zu öffnen 
> Ist das Gerät möglicherweise nicht vorhanden? 
> 
> ->%-- 
>   
> 
> 
> Accessing "/dev/sdc" is completely wrong and luckily I had no 
> "/dev/sdc" that could be erased! The same is true for "/media/P"! 
> 
> Furthermore: Why "fsck.ext2"? My QtMoko v55 and v57 SD cards had already 
> been formatted with "fsck.ext4". So even "fsck.ext3" would have been 
> outdated. 
> 
> Best regards 
>Sven 
> 
> ___
> Gta04-owner mailing list
> Gta04-owner@goldelico.com
> http://lists.goldelico.com/mailman/listinfo.cgi/gta04-owner
> 



pgpOtAkB9h4id.pgp
Description: OpenPGP digital signature
___
Gta04-owner mailing list
Gta04-owner@goldelico.com
http://lists.goldelico.com/mailman/listinfo.cgi/gta04-owner


[Gta04-owner] Antwort: Antwort: Re: QtMoko reloaded

2018-03-01 Thread Sven Dyroff
Hello Nikolaus,

correction:

   I had an external hard disc "/dev/sdc" and the rootfs had been written 
to there instead to "/dev/sdg"!!!

   SD card is still empty and the data of the external hard disc is 
lost!!!

Best regards
   Sven
 
 


Von:Sven Dyroff 
An: List for communicating with real GTA04 owners 

Datum:  01.03.2018 17:32
Betreff:[Gta04-owner] Antwort: Re:  QtMoko reloaded
Gesendet von:   "Gta04-owner" 



Hello Nikolaus, 

> Hm. Do you have a non-whitespace white space? Happens sometimes when 
copying UTF charactersto a terminal. 

Ok, after typing the command by hand I got the error that I have no rights 
to do that. So modified the command once again: 

DEV=/dev/sdg sudo ./makesd qtmoko -r 
http://download.goldelico.com/letux-debian-rootfs/20180224-wheezy-7.11-armhf-qtmoko.tbz
 


Now it worked and created the SD card. 

But please note that in the end I got: 

-%<-- 


rmdir: konnte '/media/P2' nicht entfernen: Datei oder Verzeichnis nicht 
gefunden 
rmdir: konnte '/media/P3' nicht entfernen: Datei oder Verzeichnis nicht 
gefunden 
rmdir: konnte '/media/P4' nicht entfernen: Datei oder Verzeichnis nicht 
gefunden 
fsck von util-linux 2.27.1 
rootfs: 26693/7331840 Dateien (7.1% nicht zusammenhängend), 
650288/29305190 Blöcke 
fsck von util-linux 2.27.1 
fsck.ext2: Datei oder Verzeichnis nicht gefunden beim Versuch, /dev/sdc2 
zu öffnen 
Ist das Gerät möglicherweise nicht vorhanden? 
fsck von util-linux 2.27.1 
fsck.ext2: Datei oder Verzeichnis nicht gefunden beim Versuch, /dev/sdc3 
zu öffnen 
Ist das Gerät möglicherweise nicht vorhanden? 
fsck von util-linux 2.27.1 
fsck.ext2: Datei oder Verzeichnis nicht gefunden beim Versuch, /dev/sdc4 
zu öffnen 
Ist das Gerät möglicherweise nicht vorhanden? 

->%-- 


Accessing "/dev/sdc" is completely wrong and luckily I had no 
"/dev/sdc" that could be erased! The same is true for "/media/P"! 

Furthermore: Why "fsck.ext2"? My QtMoko v55 and v57 SD cards had already 
been formatted with "fsck.ext4". So even "fsck.ext3" would have been 
outdated. 

Best regards 
   Sven 

___
Gta04-owner mailing list
Gta04-owner@goldelico.com
http://lists.goldelico.com/mailman/listinfo.cgi/gta04-owner

___
Gta04-owner mailing list
Gta04-owner@goldelico.com
http://lists.goldelico.com/mailman/listinfo.cgi/gta04-owner


[Gta04-owner] Antwort: Re: QtMoko reloaded

2018-03-01 Thread Sven Dyroff
Hello Nikolaus,

> Hm. Do you have a non-whitespace white space? Happens sometimes when 
copying UTF charactersto a terminal.

Ok, after typing the command by hand I got the error that I have no rights 
to do that. So modified the command once again:

DEV=/dev/sdg sudo ./makesd qtmoko -r 
http://download.goldelico.com/letux-debian-rootfs/20180224-wheezy-7.11-armhf-qtmoko.tbz

Now it worked and created the SD card.

But please note that in the end I got:

-%<--

rmdir: konnte '/media/P2' nicht entfernen: Datei oder Verzeichnis nicht 
gefunden
rmdir: konnte '/media/P3' nicht entfernen: Datei oder Verzeichnis nicht 
gefunden
rmdir: konnte '/media/P4' nicht entfernen: Datei oder Verzeichnis nicht 
gefunden
fsck von util-linux 2.27.1
rootfs: 26693/7331840 Dateien (7.1% nicht zusammenhängend), 
650288/29305190 Blöcke
fsck von util-linux 2.27.1
fsck.ext2: Datei oder Verzeichnis nicht gefunden beim Versuch, /dev/sdc2 
zu öffnen
Ist das Gerät möglicherweise nicht vorhanden?
fsck von util-linux 2.27.1
fsck.ext2: Datei oder Verzeichnis nicht gefunden beim Versuch, /dev/sdc3 
zu öffnen
Ist das Gerät möglicherweise nicht vorhanden?
fsck von util-linux 2.27.1
fsck.ext2: Datei oder Verzeichnis nicht gefunden beim Versuch, /dev/sdc4 
zu öffnen
Ist das Gerät möglicherweise nicht vorhanden?

->%--

Accessing "/dev/sdc" is completely wrong and luckily I had no 
"/dev/sdc" that could be erased! The same is true for "/media/P"!

Furthermore: Why "fsck.ext2"? My QtMoko v55 and v57 SD cards had already 
been formatted with "fsck.ext4". So even "fsck.ext3" would have been 
outdated.

Best regards
   Sven
 
 
___
Gta04-owner mailing list
Gta04-owner@goldelico.com
http://lists.goldelico.com/mailman/listinfo.cgi/gta04-owner


Re: [Gta04-owner] QtMoko reloaded

2018-03-01 Thread H. Nikolaus Schaller
Hi Sven,

> Am 01.03.2018 um 16:38 schrieb Sven Dyroff :
> 
> Hello Nikolaus, 
> 
> > So I'd suggest that you just make a fresh qtmoko+kernel SD card with 
> > makesd, but without u-boot: 
> > 
> > DEV=/dev/sdb makesd qtmoko -r 
> > http://download.goldelico.com/letux-debian-rootfs/20180224-wheezy-7.11-armhf-qtmoko.tbz
> >  
> > 
> >  
> > 
> > This does not tamper with the boot-loader but adds the latest kernel for 
> > qtmoko2. 
> > 
> > This should not take too much time to give it a try. 
> 
> if there's something that you'll learn very soon in IT, then the fact that 
> everything will take much more longer than expected... 
> 
> For me your one simple makesd-line resulted in the following: 
> 
> 1.) Assumed that my some years old makesd is completely outdated. So searched 
> for a current one and found: 
> 
> http://projects.goldelico.com/p/gta04-makesd/ 
>  
> 
> Thus did the folowing actions: 
> 
> wget -O makesd 
> "http://git.goldelico.com/?p=gta04-makesd.git;a=blob_plain;hb=HEAD;f=makesd 
> " 
> chmod a+x makesd 
> ./makesd -u 
> 
> Success! Ok, that was easy. 
> 
> 2.) Clean the SD card with the v55 clone completely: 
> 
> sudo dd of=/dev/sdg if=/dev/zero bs=1M conv=fsync 
> 
> After that all the partitions have been gone. Again easy success. 
> 
> 3.) Execute your suggestion: 
> 
> DEV=/dev/sdg makesd qtmoko -r 
> http://download.goldelico.com/letux-debian-rootfs/20180224-wheezy-7.11-armhf-qtmoko.tbz
>  
> 
>  
> 
> Result: "Command makesd not found". 
> 
> Ok, that's understandable. So modify your suggestion to: 
> 
> DEV=/dev/sdg ./makesd qtmoko -r 
> http://download.goldelico.com/letux-debian-rootfs/20180224-wheezy-7.11-armhf-qtmoko.tbz
>  
> 
>  

Looks ok.

> 
> Result: 
> 
> unknown option: -r 
> http://download.goldelico.com/letux-debian-rootfs/20180224-wheezy-7.11-armhf-qtmoko.tbz
>  
> 
>  

Hm. Do you have a non-whitespace white space? Happens sometimes when copying 
UTF characters
to a terminal.

> useage:... 
> ... 
> root file system (OS): 
> -r  
> ... 
> -r qtmoko 
> ... 
> macros for single partition cards: 
> ... 
> qtmoko = -f ext4 -r qtmoko -d all -k latest (does not need config) 
> ... 
> 
> Please advice ...;-) 

Or try --debug option for makesd.

> 
> Best regards 
>Sven 
> 
> ___
> Gta04-owner mailing list
> Gta04-owner@goldelico.com
> http://lists.goldelico.com/mailman/listinfo.cgi/gta04-owner

___
Gta04-owner mailing list
Gta04-owner@goldelico.com
http://lists.goldelico.com/mailman/listinfo.cgi/gta04-owner


[Gta04-owner] QtMoko reloaded

2018-03-01 Thread Sven Dyroff
Hello Nikolaus,

> So I'd suggest that you just make a fresh qtmoko+kernel SD card with 
makesd, but without u-boot:
>
> DEV=/dev/sdb makesd qtmoko -r 
http://download.goldelico.com/letux-debian-rootfs/20180224-wheezy-7.11-armhf-qtmoko.tbz
>
> This does not tamper with the boot-loader but adds the latest kernel for 
qtmoko2.
>
> This should not take too much time to give it a try.

if there's something that you'll learn very soon in IT, then the fact that 
everything will take much more longer than expected...

For me your one simple makesd-line resulted in the following:

1.) Assumed that my some years old makesd is completely outdated. So 
searched for a current one and found:

http://projects.goldelico.com/p/gta04-makesd/

Thus did the folowing actions:

wget -O makesd "
http://git.goldelico.com/?p=gta04-makesd.git;a=blob_plain;hb=HEAD;f=makesd
"
chmod a+x makesd
./makesd -u

Success! Ok, that was easy.

2.) Clean the SD card with the v55 clone completely:

sudo dd of=/dev/sdg if=/dev/zero bs=1M conv=fsync

After that all the partitions have been gone. Again easy success.

3.) Execute your suggestion:

DEV=/dev/sdg makesd qtmoko -r 
http://download.goldelico.com/letux-debian-rootfs/20180224-wheezy-7.11-armhf-qtmoko.tbz

Result: "Command makesd not found".

Ok, that's understandable. So modify your suggestion to:

DEV=/dev/sdg ./makesd qtmoko -r 
http://download.goldelico.com/letux-debian-rootfs/20180224-wheezy-7.11-armhf-qtmoko.tbz

Result:

unknown option: -r 
http://download.goldelico.com/letux-debian-rootfs/20180224-wheezy-7.11-armhf-qtmoko.tbz
useage:...
...
root file system (OS):
-r 
...
-r qtmoko
...
macros for single partition cards:
...
qtmoko = -f ext4 -r qtmoko -d all -k latest (does not need config)
...

Please advice ...;-)

Best regards
   Sven
 
 ___
Gta04-owner mailing list
Gta04-owner@goldelico.com
http://lists.goldelico.com/mailman/listinfo.cgi/gta04-owner


Re: [Gta04-owner] QtMoko2 progress

2018-03-01 Thread H. Nikolaus Schaller
Dear tinkerers and readers,
it is time for another update:

* we have brought the Jessie and Wheezy source code in better sync [1]
* in total we currently have just 5 patches on top of Wheezy
  to get it compiled and linked and installed on Jessie
* we have fixed some wrong ALSA mixer states
* some (invisible) warnings have been fixed - just to be safe
* there is a script for easier debugging on the device (it runs qpe
  under the control of gdb and disables auto-suspend)
* Andreas has found some more power-saving patches for the kernel

The Jessie version has a significant bug (a double-free) where we
only know that it comes from QSmoothListPrivate::dereferenceItem
called by libQtCore.so.4 while closing e.g. the Calendar.

This seems to be very difficult to track down since the first free()
must have been done unnoticed much earlier in code.

And it is not at all obvious how this comes from compiling on Jessie
and adding 5 patches. It might be a gcc bug, or a bug that reveals
itself only when using a newer gcc or newer APIs of some libs.

This means at the moment we can only recommend to use the Wheezy
version. Unless we can fix that in source code.

Finally, I have installed QtMoko/Wheezy through makesd on an
OpenPandora SD card and the result is promising:

https://twitter.com/goldelico/status/969214757109628929

So it might at least basically work at on the PyraPhone as well.

BR and happy tinkering,
Nikolaus

[1]: http://git.goldelico.com/?p=gta04-qtmoko.git;a=summary
___
Gta04-owner mailing list
Gta04-owner@goldelico.com
http://lists.goldelico.com/mailman/listinfo.cgi/gta04-owner