Welcome! Log In Create A New Profile

Advanced

Linux Kernel 6.11.6 Kirkwood package and Debian rootfs

Posted by bodhi 
Re: Linux Kernel 4.1 Kirkwood (FDT) and 3.16 Kirkwood (non-FDT) package and rootfs
August 05, 2015 03:09AM
hi bodhi

i´m able to login like that but wen i do the apt-get update/upgrade give 0 updates
Re: Linux Kernel 4.1 Kirkwood (FDT) and 3.16 Kirkwood (non-FDT) package and rootfs
August 05, 2015 06:38AM
Your kernel was very old. So the apt source list is probably squeeze.
cat /etc/apt/sources.list
Change source to wheezy and try again. But before you do that:

1. Make sure you have a backup (clone the USB drive to another drive).

2. And because you can't set the env for booting with DTB. You must append the DTB to uImage using step 4b. And use kirkwood-goflexhome.dtb to do that.
4b. Boot with DTB file embedded in the kernel image (no U-Boot envs changes are needed if your system already booting on USB or HDD) 

Again, please replace kirkwood-goflexnet.dtb below with the correct DTB name for your box.

After the upgrade is done, you will probably get a new initramfs generated, so you will need to regenerate the uInitrd like you did in the installation:
mkimage -A arm -O linux -T ramdisk -C gzip -a 0x00000000 -e 0x00000000 -n initramfs-4.1.0-kirkwood-tld-1 -d initrd.img-4.1.0-kirkwood-tld-1 uInitrd

And remember to do a few sync's before reboot:
sync
sync
sync

If you get any error while you did the above steps, then do not reboot, post the step you did here so we can take a look and see if it is OK to proceed.

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)



Edited 1 time(s). Last edit at 08/05/2015 06:39AM by bodhi.
Re: Linux Kernel 4.1 Kirkwood (FDT) and 3.16 Kirkwood (non-FDT) package and rootfs
August 05, 2015 09:52AM
ok i change the apt from squeeze to wheezy and now are upgrading yesterday e have made de 4b step and it´s ok

tanks again after the upgrade i edit this thread with the result

regards

Edit: the result

Quote
The following packages have been kept back: apt apt-transport-https base-files bash binutils bsdmainutils bzip2 ca-certificates cmake cmake-data coreutils cpp cpp-4.4 curl cvs dpkg e2fslibs e2fsprogs g++ g++-4.4 gcc gcc-4.4 gcc-4.4-base ifupdown initscripts iproute iputils-ping libacl1 libaprutil1 libapt-pkg-perl libattr1 libauthen-pam-perl libblkid1 libbsd0 libbz2-1.0 libc-bin libc-dev-bin libc6 libc6-dev libcap2 libcomerr2 libcurl3 libcurl3-gnutls libedit2 libevent-dev libexpat1 libgcc1 libgcrypt11 libgdbm3 libgnutls26 libgomp1 libgpg-error0 libgssapi-krb5-2 libidn11 libio-pty-perl libk5crypto3 libkeyutils1 libkrb5-3 libkrb5support0 libldap-2.4-2 liblocale-gettext-perl liblzo2-2 libmpfr4 libncurses5 libncurses5-dev libncursesw5 libneon27-gnutls libnet-ssleay-perl libpam-modules libpam0g libpcsclite-dev libpcsclite1 libpkcs11-helper1 libpython2.6 libreadline6 libsasl2-2 libselinux1 libsepol1 libslang2 libsqlite3-0 libss2 libssh2-1 libssl-dev libstdc++6 libstdc++6-4.4-dev libsvn1 libtasn1-3 libtext-charwidth-perl libtext-iconv-perl libudev0 libusb-0.1-4 libuuid-perl libuuid1 libwrap0 libxml2 linux-image-2.6-kirkwood mercurial mercurial-common module-init-tools mount ncurses-bin netbase ntpdate openssh-client openssh-server openssl openvpn passwd perl perl-base perl-modules procps python python-all python-all-dev python-dev python-minimal python-pip python2.6 python2.6-dev python2.6-minimal subversion sysvinit uboot-envtools uboot-mkimage udev util-linux vim-common vim-tiny wget xz-utils zlib1g zlib1g-dev
0 upgraded, 0 newly installed, 0 to remove and 133 not upgraded.


what you think



Edited 2 time(s). Last edit at 08/05/2015 10:17AM by pocket.
Re: Linux Kernel 4.1 Kirkwood (FDT) and 3.16 Kirkwood (non-FDT) package and rootfs
August 05, 2015 02:18PM
pocket,

It looks reasonable. Since the current Debian stable is jessie, wheezy is already old, that's why there are kept back packages.

You could choose to run with wheezy for a while, or choose to upgrade to jessie right away. However, upgrading to jessie will move your rootfs to systemd, and that is sometime troublesome. I would recommend that if you upgrade to jessie, then put it back to sysvinit right after the upgrade (before reboot). Using systemd or sysvinit is up to your preference. If you're not aware about this subject, then do this:
apt-get install sysvinit-core sysvinit sysvinit-utils

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Re: Linux Kernel 4.1 Kirkwood (FDT) and 3.16 Kirkwood (non-FDT) package and rootfs
August 05, 2015 04:32PM
Bodhi,

To build my own kernel, after patched by linux-4.1.0-kirkwood-tld-1.patch, on menuconfig, I can't find "Marvell kirkwood" (System Type ---> ARM system type)
If I choose Allow "Allow multiple platforms to be selected" and on Multiple platform selection I choose ARMv5 list, I could select only this.

--- Marvell Engineering Business Unit (MVEBU) SoCs
[*] Marvell Kirkwood boards
[ ] LaCie 2Big and 5Big Network v2 (NEW)

I am using Pogoplug V4. What I can do?

Thanks,
Re: Linux Kernel 4.1 Kirkwood (FDT) and 3.16 Kirkwood (non-FDT) package and rootfs
August 05, 2015 06:04PM
newhope,

You don't need to select anything regarding system type. It's already done in the released config file in the tarball. You can build using the exact same config that I have. And then later, add in whaterver you need using make menuconfig.

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Re: Linux Kernel 4.1 Kirkwood (FDT) and 3.16 Kirkwood (non-FDT) package and rootfs
August 06, 2015 03:15AM
hello bodhi this command is after or before the upgrade to jeesie and what is the best way to upgrade


EDIT: SO i have made the upgrade with this command
Quote
sudo apt-get -f dist-upgrade
everting seems ok no erros

then o try ro run your command
Quote
apt-get install sysvinit-core sysvinit sysvinit-utils
result
Quote
E: Unable to locate package sysvinit-core

i dont reboor until you say sommeting

regards



Edited 2 time(s). Last edit at 08/06/2015 03:55AM by pocket.
Re: Linux Kernel 4.1 Kirkwood (FDT) and 3.16 Kirkwood (non-FDT) package and rootfs
August 06, 2015 04:09AM
pocket,

Is the source in /etc/apt/sources.list pointing to jessie now?

After
apt-get update 
apt-get dist-upgrade

Try
apt-get update
apt-get install sysvinit-core sysvinit sysvinit-utils

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Re: Linux Kernel 4.1 Kirkwood (FDT) and 3.16 Kirkwood (non-FDT) package and rootfs
August 06, 2015 04:31AM
bodhi

my sources list

"deb http://ftp.de.debian.org/debian wheezy main
 deb http://security.debian.org/ wheezy/updates main contrib non-free
  deb-src http://security.debian.org/ wheezy/updates main contrib non-free"



and
root@debian:/boot# apt-get update
Hit http://ftp.de.debian.org wheezy Release.gpg
Hit http://security.debian.org wheezy/updates Release.gpg
Hit http://security.debian.org wheezy/updates Release
Hit http://ftp.de.debian.org wheezy Release
Hit http://security.debian.org wheezy/updates/main Sources
Hit http://ftp.de.debian.org wheezy/main armel Packages
Hit http://security.debian.org wheezy/updates/contrib Sources
Hit http://ftp.de.debian.org wheezy/main Translation-en
Hit http://security.debian.org wheezy/updates/non-free Sources
Hit http://security.debian.org wheezy/updates/main armel Packages
Hit http://security.debian.org wheezy/updates/contrib armel Packages
Hit http://security.debian.org wheezy/updates/non-free armel Packages
Hit http://security.debian.org wheezy/updates/contrib Translation-en
Hit http://security.debian.org wheezy/updates/main Translation-en
Hit http://security.debian.org wheezy/updates/non-free Translation-en
Reading package lists... Done
root@debian:/boot# apt-get install sysvinit-core sysvinit sysvinit-utils
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package sysvinit-core



Edited 2 time(s). Last edit at 08/06/2015 04:35AM by pocket.
Re: Linux Kernel 4.1 Kirkwood (FDT) and 3.16 Kirkwood (non-FDT) package and rootfs
August 06, 2015 04:49AM
pocket,

> root@debian:/boot# apt-get install sysvinit-core
> sysvinit sysvinit-utils

You only need to do this after upgrading to jessie.

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Re: Linux Kernel 4.1 Kirkwood (FDT) and 3.16 Kirkwood (non-FDT) package and rootfs
August 06, 2015 04:55AM
bodhi

i already made the upgrade but the sources list only apeears with weezy can i reboot???

root@debian:~# apt-get dist-upgrade
Reading package lists... Done
Building dependency tree
Reading state information... Done
Calculating upgrade... Done
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
root@debian:~#
Re: Linux Kernel 4.1 Kirkwood (FDT) and 3.16 Kirkwood (non-FDT) package and rootfs
August 06, 2015 05:06AM
Did you check your initramfs whether it was regenerated?

cd /boot
ls -lart

See if you uInitrd is newer than initramfs. If it is then do a few syncs and reboot. Also doublecheck uImage, it should be newer then vmlinuz.

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)



Edited 2 time(s). Last edit at 08/06/2015 05:09AM by bodhi.
Re: Linux Kernel 4.1 Kirkwood (FDT) and 3.16 Kirkwood (non-FDT) package and rootfs
August 06, 2015 05:07AM
i have the 2 versions here

root@debian:/boot# ls -lart
total 100168
-rw-r--r--  1 root root  1437280 May 13  2014 vmlinuz-2.6.32-5-kirkwood
-rw-r--r--  1 root root    84134 May 13  2014 config-2.6.32-5-kirkwood
-rw-r--r--  1 root root  1006354 May 13  2014 System.map-2.6.32-5-kirkwood
-rw-r--r--  1 root root  1616008 Jun 17 05:58 vmlinuz-3.2.0-4-kirkwood
-rw-r--r--  1 root root   107566 Jun 17 05:59 config-3.2.0-4-kirkwood
-rw-r--r--  1 root root  1213353 Jun 17 05:59 System.map-3.2.0-4-kirkwood
-rw-r--r--  1 root root   135821 Jun 28 09:04 config-4.1.0-kirkwood-tld-1
-rwxr-xr-x  1 root root  3082360 Jun 28 09:34 zImage-4.1.0-kirkwood-tld-1
-rw-------  1 root root  3082360 Jun 28 10:10 vmlinuz-4.1.0-kirkwood-tld-1
-rw-------  1 root root  2200014 Jun 28 10:10 System.map-4.1.0-kirkwood-tld-1
-rw-r--r--  1 root root 17321746 Jun 28 10:29 linux-image-4.1.0-kirkwood-tld-1_1.0_armel.deb
-rw-r--r--  1 root root  7264226 Jun 28 10:50 linux-headers-4.1.0-kirkwood-tld-1_1.0_armel.deb
drwxr-xr-x  2 root root     4096 Jun 28 11:43 dts
-rw-r--r--  1 root root  1034240 Jun 29 10:23 linux-dtb-4.1.0-kirkwood-tld-1.tar
-rw-r--r--  1 root root   100821 Jun 29 20:51 linux-4.1.0-kirkwood-tld-1.patch
-rw-r--r--  1 root root  1437344 Jul 30 16:03 uImage.bak
-rw-r--r--  1 root root  4535439 Jul 30 16:03 uInitrd.bak
-rw-r--r--  1 root root  4535239 Jul 31 09:08 initrd.img-2.6.32-5-kirkwood
-rw-r--r--  1 root root 27888858 Aug  4 23:04 linux-4.1.0-kirkwood-tld-1-bodhi.tar.bz2
-rwxr-xr-x  1 root root  3092747 Aug  4 23:15 zImage.fdt
-rw-r--r--  1 root root  3092811 Aug  4 23:16 uImage
-rw-r--r--  1 root root  5409997 Aug  4 23:16 uInitrd
drwxr-xr-x 22 root root     4096 Aug  6 09:38 ..
-rw-r--r--  1 root root  6895093 Aug  6 09:39 initrd.img-3.2.0-4-kirkwood
-rw-r--r--  1 root root  5743803 Aug  6 09:44 initrd.img-4.1.0-kirkwood-tld-1
drwxr-xr-x  3 root root     4096 Aug  6 09:44 .

Re: Linux Kernel 4.1 Kirkwood (FDT) and 3.16 Kirkwood (non-FDT) package and rootfs
August 06, 2015 05:10AM
You need to regenerate uInitrd for 4.1.0

-rw-r--r--  1 root root  5409997 Aug  4 23:16 uInitrd
-rw-r--r--  1 root root  5743803 Aug  6 09:44 initrd.img-4.1.0-kirkwood-tld-1

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Re: Linux Kernel 4.1 Kirkwood (FDT) and 3.16 Kirkwood (non-FDT) package and rootfs
August 06, 2015 05:11AM
Also need to regenerate uImage for 4.1.0, too.

Update: no I was mistaken. Look like it is your appended DTB uImage, so it is OK.

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)



Edited 1 time(s). Last edit at 08/06/2015 05:12AM by bodhi.
Re: Linux Kernel 4.1 Kirkwood (FDT) and 3.16 Kirkwood (non-FDT) package and rootfs
August 06, 2015 05:16AM
After you're all done, you might want to remove all old kernels so that they won't interfer with future upgrade.

dpkg -l | grep linux-image

and then use dpkg --purge to purge each one.

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Re: Linux Kernel 4.1 Kirkwood (FDT) and 3.16 Kirkwood (non-FDT) package and rootfs
August 06, 2015 05:32AM
ok let me see if i understant

root@debian:/boot# dpkg -l | grep linux-image
ii  linux-image-2.6-kirkwood              3.2+46                    armel        Linux for Marvell Kirkwood (dummy package)
ii  linux-image-2.6.32-5-kirkwood         2.6.32-48squeeze6         armel        Linux 2.6.32 for Marvell Kirkwood
ii  linux-image-3.2.0-4-kirkwood          3.2.68-1+deb7u2           armel        Linux 3.2 for Marvell Kirkwood
ii  linux-image-4.1.0-kirkwood-tld-1      1.0                       armel        Linux kernel binary image for version 4.1.0-kirkwood-tld-1
ii  linux-image-kirkwood                  3.2+46                    armel        Linux for Marvell Kirkwood (meta-package)
i will purge this one correct??

ii  linux-image-2.6-kirkwood              3.2+46                    armel        Linux for Marvell Kirkwood (dummy package)
ii  linux-image-2.6.32-5-kirkwood         2.6.32-48squeeze6         armel        Linux 2.6.32 for Marvell Kirkwood
ii  linux-image-3.2.0-4-kirkwood          3.2.68-1+deb7u2           armel        Linux 3.2 for Marvell Kirkwood
ii  linux-image-kirkwood                  3.2+46                    armel        Linux for Marvell Kirkwood (meta-package)

i have update the sources list with the jeesie sources and have run the command

root@debian:/boot# apt-get update
Hit http://security.debian.org jessie/updates Release.gpg
Hit http://security.debian.org jessie/updates Release
Hit http://httpredir.debian.org jessie Release.gpg
Hit http://security.debian.org jessie/updates/main Sources
Hit http://httpredir.debian.org jessie-updates Release.gpg
Hit http://security.debian.org jessie/updates/main armel Packages
Hit http://httpredir.debian.org jessie Release
Hit http://httpredir.debian.org jessie-updates Release
Hit http://security.debian.org jessie/updates/main Translation-en
Get:1 http://httpredir.debian.org jessie/main Sources [7059 kB]
Get:2 http://httpredir.debian.org jessie/main armel Packages [6624 kB]
Get:3 http://httpredir.debian.org jessie/main Translation-en [4585 kB]
Get:4 http://httpredir.debian.org jessie-updates/main Sources [2473 B]
Get:5 http://httpredir.debian.org jessie-updates/main armel Packages [3636 B]
Get:6 http://httpredir.debian.org jessie-updates/main Translation-en [2506 B]
Fetched 4535 kB in 1min 4s (69.9 kB/s)
Reading package lists... Done
root@debian:/boot# apt-get install sysvinit-core sysvinit sysvinit-utils
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages were automatically installed and are no longer required:
  g++-4.4 libdb4.7 libevent-1.4-2 libevent-core-1.4-2 libevent-extra-1.4-2 libfile-copy-recursive-perl libgmp3c2 libserf-0-0 libstdc++6-4.4-dev
  openvpn-blacklist python-support python2.5 python2.5-dev python2.5-minimal update-inetd
Use 'apt-get autoremove' to remove them.
The following extra packages will be installed:
  init libc-dev-bin libc6 libc6-dev startpar
Suggested packages:
  glibc-doc locales bootlogd sash
Recommended packages:
  manpages-dev
The following NEW packages will be installed:
  init startpar sysvinit-core
The following packages will be upgraded:
  libc-dev-bin libc6 libc6-dev sysvinit sysvinit-utils
5 upgraded, 3 newly installed, 0 to remove and 187 not upgraded.
Need to get 6627 kB of archives.
After this operation, 764 kB of additional disk space will be used.
Do you want to continue [Y/n]? y
Get:1 http://httpredir.debian.org/debian/ jessie/main libc6-dev armel 2.19-18 [1787 kB]
Get:2 http://httpredir.debian.org/debian/ jessie/main libc-dev-bin armel 2.19-18 [231 kB]
Get:3 http://httpredir.debian.org/debian/ jessie/main libc6 armel 2.19-18 [4274 kB]
Get:4 http://httpredir.debian.org/debian/ jessie/main startpar armel 0.59-3 [21.8 kB]
Get:5 http://httpredir.debian.org/debian/ jessie/main sysvinit-utils armel 2.88dsf-59 [82.0 kB]
Get:6 http://httpredir.debian.org/debian/ jessie/main sysvinit-core armel 2.88dsf-59 [128 kB]
Get:7 http://httpredir.debian.org/debian/ jessie/main init armel 1.22 [4664 B]
Get:8 http://httpredir.debian.org/debian/ jessie/main sysvinit armel 2.88dsf-59 [97.9 kB]
Fetched 6627 kB in 6s (1046 kB/s)
debconf: delaying package configuration, since apt-utils is not installed
(Reading database ... 50314 files and directories currently installed.)
Preparing to replace libc6-dev:armel 2.13-38+deb7u8 (using .../libc6-dev_2.19-18_armel.deb) ...
Unpacking replacement libc6-dev:armel ...
Preparing to replace libc-dev-bin 2.13-38+deb7u8 (using .../libc-dev-bin_2.19-18_armel.deb) ...
Unpacking replacement libc-dev-bin ...
Preparing to replace libc6:armel 2.13-38+deb7u8 (using .../libc6_2.19-18_armel.deb) ...
debconf: unable to initialize frontend: Dialog
debconf: (No usable dialog-like program is installed, so the dialog based frontend cannot be used. at /usr/share/perl5/Debconf/FrontEnd/Dialog.pm line 76.)
debconf: falling back to frontend: Readline
Checking for services that may need to be restarted...
Checking init scripts...
Unpacking replacement libc6:armel ...
Setting up libc6:armel (2.19-18) ...
debconf: unable to initialize frontend: Dialog
debconf: (No usable dialog-like program is installed, so the dialog based frontend cannot be used. at /usr/share/perl5/Debconf/FrontEnd/Dialog.pm line 76.)
debconf: falling back to frontend: Readline
Checking for services that may need to be restarted...
Checking init scripts...

Restarting services possibly affected by the upgrade:
  webmin: restarting...done.

Services restarted successfully.
(Reading database ... 50336 files and directories currently installed.)
Preparing to replace sysvinit-utils 2.88dsf-41+deb7u1 (using .../sysvinit-utils_2.88dsf-59_armel.deb) ...
Unpacking replacement sysvinit-utils ...
Selecting previously unselected package startpar.
Unpacking startpar (from .../startpar_0.59-3_armel.deb) ...
Setting up startpar (0.59-3) ...
Installing new version of config file /etc/init/startpar-bridge.conf ...
Setting up sysvinit-utils (2.88dsf-59) ...
Selecting previously unselected package sysvinit-core.
(Reading database ... 50343 files and directories currently installed.)
Unpacking sysvinit-core (from .../sysvinit-core_2.88dsf-59_armel.deb) ...
Replacing files in old package sysvinit ...
Setting up sysvinit-core (2.88dsf-59) ...
debconf: unable to initialize frontend: Dialog
debconf: (No usable dialog-like program is installed, so the dialog based frontend cannot be used. at /usr/share/perl5/Debconf/FrontEnd/Dialog.pm line 76.)
debconf: falling back to frontend: Readline
sysvinit: restarting... done.
Selecting previously unselected package init.
(Reading database ... 50348 files and directories currently installed.)
Unpacking init (from .../archives/init_1.22_armel.deb) ...
Setting up init (1.22) ...
(Reading database ... 50351 files and directories currently installed.)
Preparing to replace sysvinit 2.88dsf-41+deb7u1 (using .../sysvinit_2.88dsf-59_armel.deb) ...
Unpacking replacement sysvinit ...
Setting up sysvinit (2.88dsf-59) ...
Setting up libc-dev-bin (2.19-18) ...
Setting up libc6-dev:armel (2.19-18) ...

Re: Linux Kernel 4.1 Kirkwood (FDT) and 3.16 Kirkwood (non-FDT) package and rootfs
August 06, 2015 05:47AM
pocket ,

Correct. Purge all others but keep the current kernel.

> i have update the sources list with the jeesie
> sources and have run the command

They look OK. But the sysvinit reinstall should be after the dist-upgrade, not before

Remember to always check your uImage and uInitrd after massive upgrade like this.

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)



Edited 2 time(s). Last edit at 08/06/2015 05:50AM by bodhi.
Re: Linux Kernel 4.1 Kirkwood (FDT) and 3.16 Kirkwood (non-FDT) package and rootfs
August 06, 2015 06:32AM
bodhi

i have made new dist-upgrade he found 189 packages do upgrade after this is recomend to install again the sysvinit??

i have remove the older kernell and seems to be ok to

the system made a question

sshserver without root pass i answer yes and now i can enter in ssh lol, and dont have another users

how to resolve this



Edited 2 time(s). Last edit at 08/06/2015 06:54AM by pocket.
Re: Linux Kernel 4.1 Kirkwood (FDT) and 3.16 Kirkwood (non-FDT) package and rootfs
August 06, 2015 03:32PM
pocket Wrote:
-------------------------------------------------------
> bodhi
>
> i have made new dist-upgrade he found 189 packages
> do upgrade after this is recomend to install again
> the sysvinit??
>

Yes, do this after the first dist-upgrade to jessie. When in doubt, you can do it again, no problem.

> i have remove the older kernell and seems to be ok
> to
>
> the system made a question
>
> sshserver without root pass i answer yes and now i
> can enter in ssh lol, and dont have another users
>
> how to resolve this

Take the stick to another Linux box and modify the file /etc/ssh/sshd_config. These 3 lines should look like:
PermitRootLogin yes
PermitEmptyPasswords no
# the setting of "PermitRootLogin without-password".

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Re: Linux Kernel 4.1 Kirkwood (FDT) and 3.16 Kirkwood (non-FDT) package and rootfs
August 06, 2015 03:34PM
pocket,

BTW, I think we've covered the kernel/rootfs installation topic at this point. Any other problem/questions, you should start a new Debian thread!

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Re: Linux Kernel 4.1 Kirkwood (FDT) and 3.16 Kirkwood (non-FDT) package and rootfs
August 06, 2015 05:56PM
bodhi sorry to put other question.

You made my day now all are ok , tanks again

can i buy a beer to you

regards
Re: Linux Kernel 4.1 Kirkwood (FDT) and 3.16 Kirkwood (non-FDT) package and rootfs
August 07, 2015 02:15AM
pocket Wrote:
-------------------------------------------------------
> bodhi sorry to put other question.
>
> You made my day now all are ok , tanks again
>
> can i buy a beer to you
>
> regards

Glad you got everything working :) Hope this exercise has been a good source of references for others looking for info to do the same.

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Re: Linux Kernel 4.1 Kirkwood (FDT) and 3.16 Kirkwood (non-FDT) package and rootfs
August 07, 2015 06:38PM
bodhi,

like you said, loaded your config first, and compiled correctly. Thank you:)


and, How can I build my own zImage-4.x.x ? because I want to make fdt-included uImage.

Best,



Edited 1 time(s). Last edit at 08/07/2015 07:13PM by newhope.
Re: Linux Kernel 4.1 Kirkwood (FDT) and 3.16 Kirkwood (non-FDT) package and rootfs
August 07, 2015 07:31PM
newhope,

> and, How can I build my own zImage-4.x.x ? because
> I want to make fdt-included uImage.

You don't need to build it. It was already built during kernel compilation.
linux-4.1/arch/arm/boot/zImage
Copy this file and rename to zImage-4.1.x.x

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Re: Linux Kernel 4.1 Kirkwood (FDT) and 3.16 Kirkwood (non-FDT) package and rootfs
August 07, 2015 10:04PM
bodhi,

I do appreciate all.

I did your instruction, like

cd arch/arm/boot
cp -a zImage zImage.fdt
cat dts/kirkwood-pogoplug_v4.dtb >> zImage.fdt
mv zImage.fdt /boot
cd /boot
mkimage -A arm -O linux -T kernel -C none -a 0x00008000 -e 0x00008000 -n 4.0.5-rt3-20150805 -d zImage.fdt uImage
mkimage -A arm -O linux -T ramdisk -C gzip -a 0x00000000 -e 0x00000000 -n initramfs-4.0.5-rt3-20150805 -d initrd.img-4.0.5-rt3-20150805 uInitrd

but, does not work. of course, in case of separate dts file, works. what can I do?

Best,



Edited 2 time(s). Last edit at 08/07/2015 10:55PM by newhope.
Re: Linux Kernel 4.1 Kirkwood (FDT) and 3.16 Kirkwood (non-FDT) package and rootfs
August 08, 2015 02:40AM
newhope,

It could be some thing you've forgot to do such as changing u-boot envs to boot with DTB-appended uImage. It's hard to say because it could be a lot of things. Best is to watch the boot log in serial console, if you have one already set up.

I can tell that you want to build your own Preempt RT kernel? been there :) My advice is if you don't have serial console connected then you should set one up. If you don't want to have to solder the serial pins then get the GoFlex Net/Pogo E02/iConnect plug, they usually have serial header already.

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Re: Linux Kernel 4.1 Kirkwood (FDT) and 3.16 Kirkwood (non-FDT) package and rootfs
August 08, 2015 06:07AM
bodhi,

Like you said, I set up serial console and checked up step-by-step.
I found a miss on kernel config about device Tree Blob (Flat Device Tree)
anyway, serial console does really help.

Thank you all the time. :)

Best,
Re: Linux Kernel 4.1 Kirkwood (FDT) and 3.16 Kirkwood (non-FDT) package and rootfs
August 08, 2015 10:09AM
--- deleted ---



Edited 1 time(s). Last edit at 08/08/2015 11:44AM by funtoy1001.
Re: Linux Kernel 4.1 Kirkwood (FDT) and 3.16 Kirkwood (non-FDT) package and rootfs
August 10, 2015 02:05AM
Kernel linux-4.1.0-kirkwood-tld-2 package has been uploaded. Please see 1st post for download link.

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Sorry, you can't reply to this topic. It has been closed.