Reply
Thread Tools
Posts: 3,328 | Thanked: 4,476 times | Joined on May 2011 @ Poland
#141
Does DebiaN900 use some kind of preinit script on N900? For example to kick the watchdog, etc. We'll need such a thing on N950 but maybe there's no need to reinvent the wheel
__________________
If you want to support my work, you can donate by PayPal or Flattr

Projects no longer actively developed: here
 

The Following User Says Thank You to marmistrz For This Useful Post:
Posts: 3,328 | Thanked: 4,476 times | Joined on May 2011 @ Poland
#142
wicket: not polling github anymore, better to discuss it here.

there are lots of problems with running your script under Arch.

We don't have qemu-debootstrap here, it is advised to symlink it: http://unix.stackexchange.com/questi...-in-arch-linux

So I did it, then debootstrap fails on: mount: Bad exec format

Some search yielded I need to add the --foreign parameter. Did it, now debootstrapping fails because of missing /mnt/etc/hosts.

Do you have any ideas?
__________________
If you want to support my work, you can donate by PayPal or Flattr

Projects no longer actively developed: here
 

The Following 2 Users Say Thank You to marmistrz For This Useful Post:
wicket's Avatar
Posts: 634 | Thanked: 3,266 times | Joined on May 2010 @ Colombia
#143
Sorry for neglecting this thread but my time has freed up for the moment so I'll be doing some more work on this.

Meanwhile, I snapped up this beauty which should speed up development. It's been sitting in the UK for a few months but it will be personally delivered to me this Tuesday.

I want to again thank all of those who offered me an N900 but I really did not want to accept a donation whilst I wasn't sure how much time I would be able to commit to the project.

Originally Posted by NIK510 View Post
I am curious can you connect USB devices?
Not yet. Host mode via debugfs is work in progress:

http://thread.gmane.org/gmane.linux..../focus=2133266

Originally Posted by marmistrz View Post
Does DebiaN900 use some kind of preinit script on N900? For example to kick the watchdog, etc. We'll need such a thing on N950 but maybe there's no need to reinvent the wheel
There's no special preinit script. It's pure Debian.

Originally Posted by marmistrz View Post
wicket: not polling github anymore, better to discuss it here.

there are lots of problems with running your script under Arch.

We don't have qemu-debootstrap here, it is advised to symlink it: http://unix.stackexchange.com/questi...-in-arch-linux

So I did it, then debootstrap fails on: mount: Bad exec format

Some search yielded I need to add the --foreign parameter. Did it, now debootstrapping fails because of missing /mnt/etc/hosts.

Do you have any ideas?
Please see my responses on the issue tracker. You need qemu-arm-static and then you can register the ARM executable binary format.
__________________
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 7 Users Say Thank You to wicket For This Useful Post:
Posts: 3,328 | Thanked: 4,476 times | Joined on May 2011 @ Poland
#144
What currently blocks us from supporting installation on the eMMC? I have a spare N900 to experiment on but no spare uSD atm.
__________________
If you want to support my work, you can donate by PayPal or Flattr

Projects no longer actively developed: here
 

The Following 3 Users Say Thank You to marmistrz For This Useful Post:
wicket's Avatar
Posts: 634 | Thanked: 3,266 times | Joined on May 2010 @ Colombia
#145
I've pushed several commits to GitHub. The notable changes are that a new script debug mode is now supported which provides verbose output, the default kernel has been updated to 4.7-rc4 from Pali's repo and the kernel is now installed as a deb file.

By installing the kernel as a deb file, it's now much easier to test new kernels. Installation of the deb file will append the device tree to the kernel image and create the U-Boot image automatically. Creation of the initrd images is triggered automatically after the kernel has been installed. This means that you now just need to copy the deb file over and install it (and don't forget to update U-Boot!). Deb files for headers, dbg and libc dev are also built. You'll need to make sure that your build system can build deb files!

I've just noticed a regression with the 4.7-rc4 kernel in that the mouse cursor movement is inverted on the Y axis so I may revert the default kernel to an earlier version.

Originally Posted by marmistrz View Post
What currently blocks us from supporting installation on the eMMC? I have a spare N900 to experiment on but no spare uSD atm.
Nothing really, however I've not tested 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

Last edited by wicket; 2016-07-05 at 15:39.
 

The Following 4 Users Say Thank You to wicket For This Useful Post:
Posts: 3,328 | Thanked: 4,476 times | Joined on May 2011 @ Poland
#146
I tried. By while partitioning I forgot about the hardcoded partition ids in Maemo, which rendered Maemo unbootable.

Is there any other way to fix it than by undoing the partitioning and reinstalling Debian?

My partitioning:

/dev/mmcblk0p1
/dev/mmcblk0p4
/dev/mmcblk0p2
/dev/mmcblk0p3

I'd need to move p4 to the end of the disk
__________________
If you want to support my work, you can donate by PayPal or Flattr

Projects no longer actively developed: here
 
wicket's Avatar
Posts: 634 | Thanked: 3,266 times | Joined on May 2010 @ Colombia
#147
Originally Posted by marmistrz View Post
I tried. By while partitioning I forgot about the hardcoded partition ids in Maemo, which rendered Maemo unbootable.

Is there any other way to fix it than by undoing the partitioning and reinstalling Debian?

My partitioning:

/dev/mmcblk0p1
/dev/mmcblk0p4
/dev/mmcblk0p2
/dev/mmcblk0p3

I'd need to move p4 to the end of the disk
You've not made it clear what it is you've done exactly. I don't understand how you've got the partitioning in that order, partition managers like fdisk and parted will number the partitions in the correct order. If you've not got a bootable OS, don't you need to reflash?
__________________
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
 
Posts: 3,328 | Thanked: 4,476 times | Joined on May 2011 @ Poland
#148
I used the MeeGo rescue initrd. I stripped the mmcblk0p4 to 10 GB. I created an ext4 partition in the remaining spaced. It was given the id mmcblk0p4.

I installed Debian with the script (old version) to the newly created ext4 partition.
Now I'm booting Maemo with U-Boot, all I get is a black screen.

I guess that If mmcblk0p4 were removed, Maemo'd boot back again.
__________________
If you want to support my work, you can donate by PayPal or Flattr

Projects no longer actively developed: here
 
Posts: 110 | Thanked: 362 times | Joined on May 2014
#149
I have debian900 booting from emmc. So it is possible
If i remember correctly the only "problem" was the numbering change depending on whether a sd card is in the device or not.

emmc becomes
/dev/mmcblk0 without sdcard
/dev/mmcblk1 with sdcard in device

I "solved" it via 2 different uboot entrys.
But i guess you need just one.
 

The Following 2 Users Say Thank You to pythoneye2 For This Useful Post:
Posts: 3,328 | Thanked: 4,476 times | Joined on May 2011 @ Poland
#150
My uboot was more fubar than I thought, reflashed.

I can't build the kernel with the latest git version:
Code:
  LD      drivers/video/fbdev/omap2/built-in.o
  LD      drivers/video/fbdev/built-in.o
  LD      drivers/video/built-in.o
  LD      drivers/built-in.o
make[1]: *** [deb-pkg] Error 2
make: *** [deb-pkg] Error 2
/edit: the real cause was earlier on:

Code:
  CC      fs/nls/nls_base.o
In file included from include/linux/spinlock.h:81:0,
                 from include/linux/seqlock.h:35,
                 from include/linux/time.h:5,
                 from include/linux/stat.h:18,
                 from include/linux/module.h:10,
                 from fs/nls/nls_base.c:11:
include/linux/spinlock_types.h:76:1: internal compiler error: Segmentation fault
 } spinlock_t;
 ^
Please submit a full bug report,
with preprocessed source if appropriate.
See <http://gcc.gnu.org/bugs.html> for instructions.
make[4]: *** [fs/nls/nls_base.o] Error 1
make[3]: *** [fs/nls] Error 2
make[2]: *** [fs] Error 2
make[2]: *** Waiting for unfinished jobs....
  CC      drivers/iommu/omap-iommu.o
I guess I'll have to build the kernel on my Arch/GCC6.1 and resume the debootstrap on my Linux Mint.

/edit2: the script should check for dpkg, installed it on my Arch, let's see what happens next.
/edit3: The packaging fails:
Code:
parsechangelog/debian: warning:     debian/changelog(l2): found eof where expected first heading
parsechangelog/debian: error: fatal error occurred while parsing debian/changelog
dpkg-gencontrol: error: changelog parser /usr/lib/dpkg/parsechangelog/debian gave error exit status 255
make[1]: *** [scripts/package/Makefile:94: deb-pkg] Error 255
__________________
If you want to support my work, you can donate by PayPal or Flattr

Projects no longer actively developed: here

Last edited by marmistrz; 2016-07-06 at 09:29.
 
Reply

Tags
debian, debian900, devuan, maemo 7


 
Forum Jump


All times are GMT. The time now is 11:04.