there is a problem with the command get-linux-source ?
hangs at : "Connecting to http://ftp.kernel.org (149.20.4.69:21)"
I tried as regular user and root.
there is a problem with the command get-linux-source ?
hangs at : "Connecting to http://ftp.kernel.org (149.20.4.69:21)"
I tried as regular user and root.
That would be because the URL could be wrong, I suppose.
Fetching the latest linux source for the SliTaz kernel would probably be: https://www.kernel.org/pub/linux/kernel/v3.x/linux-3.2.53.tar.gz
Additionally, it might help to mention what version of SliTaz you are currently using.
hi, sry I was busy...
ok so I downloaded manually the sources, then I copied the config file who come with slitaz, /proc/config.gz
to .config
, and I started to compile the kernel :
# make
at this stage, I got an error about initrd.cpio
. I copy initrd
from /usr/share/boot/
and rename it initrd.cpio
. I want to notice I first tried to set CONFIG_INITRAMFS_SOURCE
to point to /usr/share/boot/initrd
, but the compilation failed.
# make modules <= this one is not needed
# make modules_install
I moved ./arch/x86/bzImage
to my boot folder
I settled the entry in syslinux.cfg to boot with the new kernel,
then I boot and get this error :
I still try to figure what's going on there, but this is far beyond my knowledge and I don't know what I should try found on the web to be able to deal with that situation.
(I'm using slitaz-5.0-rc2)
I'm a bit curious as to where you got the get-linux-source script from? It isn't in the repositories anywhere, not in the get-scripts repo, in the wok... Not anywhere.
However, if you wish to install the linux-source package, you should be able to just run
tazpkg -gi linux-source
and it should download the kernel sources and their respective patches, and install everything in the /usr/src/linux-3.2.53 directory. No initrc should be required when building this from what I can tell, so that should be enough. Simply log in as root, run the above command, then cd into /usr/src/linux-* and type:
zcat /proc/config.gz > .config && make menuconfig && make && make modules_install
The kernel will be ready to be installed by then.
Find what tazpkg owns a file:
tazpkg search-pkgname <filename>
tux@slitaz:~ $ tazpkg search-pkgname get-linux-source
Search result for package get-linux-source
================================================================================
linux-libre-source
linux-source
================================================================================
packages found with file: get-linux-source
ftp://cook.slitaz.org/linux-source/stuff/get-linux-source
ftp://cook.slitaz.org/linux-source/taz/linux-source-3.2.53/fs/usr/bin/get-linux-source
http://hg.slitaz.org/wok/file/526980ca17c4/linux-source/stuff/get-linux-source
hi,
@ necrophcodr : the sources don't come with linux-source, actually you have to run get-linux-source (who comes with linux-source) to get the sources.
@ mojo : I copy+paste http://hg.slitaz.org/wok/file/526980ca17c4/linux-source/stuff/get-linux-source , but it still hangs like in my first post
I'm not familiar with advanced bash script, but since I have the sources already donwnloads and the patches (they come with linux-source iirc) someone can just paste here a script who applies these patches ?
bump,
any idea/help will be welcomed.
@brainlessmutant
Are you sure that get-linux-source "hangs"? When I run it (using RC2),
Connecting to http://ftp.kernel.org (149.20.4.69:21)
displayed for 1 minute then
wget: Can't connect to remote host (149.20.4.69:21): connection timeout
and after 10 seconds
NET: Registered protocol family 10
(x3)
Connecting to linux-kernel.uio.no (128.39.3.170:80)
and downloads linux-3.2.53.tar.xz
someone can just paste here a script who applies these patches ?
get-linux-source
does it.
I will check that when my issue with my internet connection would be settled.
( http://forum.slitaz.org/topic/error-at-boot-after-using-tazusb-no-internet-and-no-locales )
I waited for almost 20 min... and still have
# get-linux-source
Connecting to http://ftp.kernel.org (149.20.4.69:21)
You must log in to post.