View Single Post
wicket's Avatar
Posts: 634 | Thanked: 3,266 times | Joined on May 2010 @ Colombia
#70
Originally Posted by AapoRantalainen View Post
[On-Topic]
This script is amazing!
Thanks!

Originally Posted by AapoRantalainen View Post
Couple of remarks, for motivating others.

1) Works with Ubuntu-14.10
Needed tools:
Code:
#For compiling kernel
sudo apt-get install qemu-user-static gcc-arm-none-eabi
#For preparing card
sudo apt-get install debootstrap
Gcc in Ubuntu fails with same error than Debian. Downgrade e.g. http://se.archive.ubuntu.com/ubuntu/...arm-none-eabi/ (reported: https://bugs.launchpad.net/ubuntu/+s...i/+bug/1390912)
Thanks for reporting it in Ubuntu too. It's a shame no one's looked at it yet.

Originally Posted by AapoRantalainen View Post
I'm first testing
Code:
debian.conf
-ARCH=armhf
+ARCH=armel
2) During debootstap it asks what locales to generate. And timezone. Could these be in config file? (-> Even more batch run)
This actually occurs after debootstrap. The install script calls dpkg-reconfigure locales and dpkg-reconfigure tzdata. Rather than control these via the config file I'll change it (along with the password set up) so that they run on first boot instead of the chroot stage.

Originally Posted by AapoRantalainen View Post
3) My Fremantle could not read EXT4, so step "run configure_u-boot.sh" must be skipped and do manually uboot.item.
If you're running kernel-power under Fremantle it can mount ext4 however it doesn't detect it automatically so be sure to specify the "-t ext4" option of the mount command.

Alternatively you can copy configure_u-boot.sh to the N900 and run it. I'll update the script and README to make it clearer.

Originally Posted by AapoRantalainen View Post
4) My first build was unusable, because even it associated with wireless access point, it never asked IP. So I made another build with added package isc-dhcp-client for dhclient. (Is this essential package or what is correct solution?)
That's odd. ConnMan, the default connection manager has its own DHCP client so isc-dhcp-client shouldn't be needed. I get an IP address automatically once I've been authenticated with the AP.

Originally Posted by AapoRantalainen View Post
Also
Code:
-EDITOR=vim
+EDITOR=nano
would be easier (no editor-war =) )
Easier? You wouldn't believe the problems I have when I use an editor that's not vi based (I'm currently typing this post using wasavi). :P I learnt to use vi when I realised that it's available on every Unix-based machine. I'll change the default editor to nano when it makes it into the POSIX spec.

Originally Posted by AapoRantalainen View Post
5) issue: shutting down jessie (init 0 or shutdown -hP now) will not shut device down. I don't know what state it is but it can't be started with power button. Battery must be taken off.
This is a known issue.

Originally Posted by AapoRantalainen View Post
6) issue: File system gets corrupted often when doing apt-get update or install.
Command stops at
Code:
Error writing to output file - write (30: Read-only file system)
And dmesg shows:
Code:
[  560.576171] EXT4-fs error (device mmcblk0p1) in ext4_reserve_inode_write:4887: Out of memory
[  560.597259] Aborting journal on device mmcblk0p1-8.
[  560.607391] EXT4-fs (mmcblk0p1): Remounting filesystem read-only
[  560.613403] EXT4-fs error (device mmcblk0p1) in ext4_dirty_inode:5006: IO failure
[  560.619506] EXT4-fs error (device mmcblk0p1): ext4_journal_check_start:56: Detected aborted journal
I'm currently working with one SD-card and one N900-device, and I don't know if they are fault.
It sounds like you've got a bad SD card.

Originally Posted by AapoRantalainen View Post
6b) Can't trigger fsck with
Code:
shutdown -rF 0
or
Code:
touch /forcefsck
I must remove card for fixing filesystem. And because device is not shutting down it needs also battery removal every time.
This is odd. It's happening for me too. I'll look into it.
__________________
DebiaN900 - Native Debian on the N900. Deprecated in favour of Maemo Leste.

Maemo Leste for N950 and N9 (currently broken).
Devuan for N950 and N9.

Mobile devices with mainline Linux support - Help needed with documentation.

"Those who do not understand Unix are condemned to reinvent it, poorly." - Henry Spencer
 

The Following 4 Users Say Thank You to wicket For This Useful Post: