SliTaz SliTaz Forum

You are not logged in.

#1 2014-09-03 21:56:54

brainlessmutant
Member
Registered: 2014-08-04
Posts: 40

get-linux-source hangs.

there is a problem with the command get-linux-source ?

hangs at  : "Connecting to ftp.kernel.org (149.20.4.69:21)"

I tried as regular user and root.

Offline

#2 2014-09-04 08:40:10

necrophcodr
Member
Registered: 2014-02-20
Posts: 101

Re: get-linux-source hangs.

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

Offline

#3 2014-09-04 08:42:30

necrophcodr
Member
Registered: 2014-02-20
Posts: 101

Re: get-linux-source hangs.

Additionally, it might help to mention what version of SliTaz you are currently using.

Offline

#4 2014-09-09 03:52:02

brainlessmutant
Member
Registered: 2014-08-04
Posts: 40

Re: get-linux-source hangs.

hi, sry I was busy...

ok so I downloaded manually the sources, then I copied the config file who come with slitaz, [c]/proc/config.gz[/c] to [c].config[/c], and I started to compile the kernel :

# make

at this stage, I got an error about [c]initrd.cpio[/c]. I copy [c]initrd[/c] from [c]/usr/share/boot/[/c] and rename it [c]initrd.cpio[/c]. I want to notice I first tried to set [c]CONFIG_INITRAMFS_SOURCE[/c] to point to [c]/usr/share/boot/initrd[/c], but the compilation failed.

# make modules <= this one is not needed

# make modules_install

I moved [c]./arch/x86/bzImage[/c] to my boot folder

I settled the entry in syslinux.cfg to boot with the new kernel,

then I boot and get this error :

[attachment=33655,1664]

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)

Offline

#5 2014-09-10 10:21:44

necrophcodr
Member
Registered: 2014-02-20
Posts: 101

Re: get-linux-source hangs.

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

[c]tazpkg -gi linux-source[/c]

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:

[c]zcat /proc/config.gz > .config && make menuconfig && make && make modules_install[/c]

The kernel will be ready to be installed by then.

Offline

#6 2014-09-10 10:54:55

mojo
Administrator
Registered: 2011-03-29
Posts: 2,174

Re: get-linux-source hangs.

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

Offline

#7 2014-09-11 03:27:19

brainlessmutant
Member
Registered: 2014-08-04
Posts: 40

Re: get-linux-source hangs.

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 ?

Offline

#8 2014-09-14 15:33:55

brainlessmutant
Member
Registered: 2014-08-04
Posts: 40

Re: get-linux-source hangs.

bump,

any idea/help will be welcomed.

Offline

#9 2014-09-16 19:40:24

Ceel
Administrator
Registered: 2011-04-02
Posts: 1,424

Re: get-linux-source hangs.

@brainlessmutant

Are you sure that get-linux-source "hangs"? When I run it (using RC2),

[c]Connecting to http://ftp.kernel.org (149.20.4.69:21) [/c]displayed for 1 minute then

[c]wget: Can't connect to remote host (149.20.4.69:21): connection timeout[/c]

and after 10 seconds

[c]NET: Registered protocol family 10

Connecting to linux-kernel.uio.no (128.39.3.170:80)[/c] (x3)

and downloads linux-3.2.53.tar.xz

someone can just paste here a script who applies these patches ?

[c]get-linux-source [/c]does it.

Offline

#10 2014-09-17 19:05:13

brainlessmutant
Member
Registered: 2014-08-04
Posts: 40

Re: get-linux-source hangs.

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 )

Offline

#11 2014-09-19 03:04:17

brainlessmutant
Member
Registered: 2014-08-04
Posts: 40

Re: get-linux-source hangs.

I waited for almost 20 min... and still have

# get-linux-source

Connecting to ftp.kernel.org (149.20.4.69:21)

Offline

Registered users online in this topic: 0, guests: 1
[Bot] ClaudeBot

Board footer

Powered by FluxBB
Modified by Visman

[ Generated in 0.021 seconds, 7 queries executed - Memory usage: 1.55 MiB (Peak: 1.77 MiB) ]