maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Alternatives (https://talk.maemo.org/forumdisplay.php?f=36)
-   -   DebiaN900 - A set of scripts to facilitate the installation of native Debian (WIP) (https://talk.maemo.org/showthread.php?t=93878)

marmistrz 2015-12-28 09:24

Re: DebiaN900 - A set of scripts to facilitate the installation of native Debian (WIP)
 
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 :)

marmistrz 2016-06-29 11:30

Re: DebiaN900 - A set of scripts to facilitate the installation of native Debian (WIP)
 
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?

wicket 2016-07-03 18:16

Re: DebiaN900 - A set of scripts to facilitate the installation of native Debian (WIP)
 
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.

Quote:

Originally Posted by NIK510 (Post 1490098)
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

Quote:

Originally Posted by marmistrz (Post 1492789)
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.

Quote:

Originally Posted by marmistrz (Post 1508639)
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.

marmistrz 2016-07-05 13:21

Re: DebiaN900 - A set of scripts to facilitate the installation of native Debian (WIP)
 
What currently blocks us from supporting installation on the eMMC? I have a spare N900 to experiment on but no spare uSD atm.

wicket 2016-07-05 15:29

Re: DebiaN900 - A set of scripts to facilitate the installation of native Debian (WIP)
 
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.

Quote:

Originally Posted by marmistrz (Post 1509028)
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.

marmistrz 2016-07-05 16:15

Re: DebiaN900 - A set of scripts to facilitate the installation of native Debian (WIP)
 
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

wicket 2016-07-05 18:38

Re: DebiaN900 - A set of scripts to facilitate the installation of native Debian (WIP)
 
Quote:

Originally Posted by marmistrz (Post 1509040)
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?

marmistrz 2016-07-05 20:08

Re: DebiaN900 - A set of scripts to facilitate the installation of native Debian (WIP)
 
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.

pythoneye2 2016-07-06 01:29

Re: DebiaN900 - A set of scripts to facilitate the installation of native Debian (WIP)
 
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.

marmistrz 2016-07-06 08:35

Re: DebiaN900 - A set of scripts to facilitate the installation of native Debian (WIP)
 
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



All times are GMT. The time now is 21:52.

vBulletin® Version 3.8.8