Re:
You need to install openssl-devel, so it'll fix this issue :) On Fri, Sep 18, 2015 at 1:49 AM, Shraddha Barkewrote: > I updated my local kernel repository with all recent commits using the > following commands- > git checkout staging-next > git pull > > After that when I try to compile, I'm getting an error > > scripts/sign-file.c:20:25: fatal error: openssl/bio.h: No such file or > directory > #include > ^ > compilation terminated. > scripts/Makefile.host:91: recipe for target 'scripts/sign-file' failed > make[1]: *** [scripts/sign-file] Error 1 > Makefile:545: recipe for target 'scripts' failed > make: *** [scripts] Error 2 > > > What should I do to fix it? > > Thanks in advance. > > ___ > Kernelnewbies mailing list > Kernelnewbies@kernelnewbies.org > http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies > -- -- Leônidas S. Barbosa (Kirotawa) blog: corecode.wordpress.com ___ Kernelnewbies mailing list Kernelnewbies@kernelnewbies.org http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies
Re: Help debugging linux-next.
git bisect would be a choice. Seems your issue is around i915, that is related to intel graphics, isolate commits in this area would be another way On Sun, Sep 13, 2015 at 2:09 PM, Lucas Tanurewrote: > Hi, > > I would like some tips about how debug a issue with linux-next. > I'm trying to find things to do in kernel, and the first thing is boot the > linux-next tree. > > I'm able to compile the source, but when I boot I got a black screen a few > times, or a just a warn in dmesg. > > I'm trying to understand the issue, but no success. I tried to get kdump > from the issue, but didn't work. I also tried to go back a few commits in > linux-next, but my system doesn't boot at all. > > How I can find the commit that create the problem, since every commit that I > tested I got black screen ? > Whats the best way to debug this kind of issue ? > > Thanks! > > My full warning: > > [ cut here ] > WARNING: CPU: 3 PID: 243 at drivers/gpu/drm/drm_drv.c:569 > drm_dev_alloc+0x251/0x320 [drm]() > Modules linked in: i915(+) joydev input_leds mousedev intel_rapl iosf_mbi > x86_pkg_temp_thermal intel_powerclamp coretemp kvm_intel kvm ttm hid_generic > drm_kms_helper crct10dif_pclmul snd_hda_intel crc32_pclmul usbhid > snd_hda_codec crc32c_intel drm hid ghash_clmulni_intel snd_hda_core > eeepc_wmi asus_wmi aesni_intel iTCO_wdt sparse_keymap snd_hwdep led_class > aes_x86_64 lrw snd_pcm iTCO_vendor_support rfkill mxm_wmi evdev gf128mul > intel_gtt e1000e glue_helper mac_hid snd_timer syscopyarea ablk_helper > cryptd sysfillrect psmouse snd sysimgblt pcspkr fb_sys_fops ptp mei_me > i2c_i801 i2c_algo_bit soundcore mei shpchp i2c_core pps_core lpc_ich > serio_raw wmi fan battery processor thermal video button sch_fq_codel > ip_tables x_tables ext4 crc16 mbcache jbd2 sd_mod atkbd libps2 ahci libahci > libata > xhci_pci xhci_hcd ehci_pci ehci_hcd scsi_mod usbcore usb_common i8042 serio > CPU: 3 PID: 243 Comm: systemd-udevd Not tainted 4.2.0-next-20150912-ARCH #5 > Hardware name: System manufacturer System Product Name/Maximus IV GENE-Z, > BIOS 3603 11/09/2012 > 5ca47666 88060f70b9d0 812b9159 > 88060f70ba08 81074e62 880612d39000 > a06c7100 880612f66098 a06c7100 a0691760 > Call Trace: > [] dump_stack+0x4b/0x72 > [] warn_slowpath_common+0x82/0xc0 > [] warn_slowpath_null+0x1a/0x20 > [] drm_dev_alloc+0x251/0x320 [drm] > [] drm_get_pci_dev+0x3b/0x1e0 [drm] > [] i915_pci_probe+0x34/0x50 [i915] > [] local_pci_probe+0x45/0xa0 > [] ? pci_match_device+0xe0/0x110 > [] pci_device_probe+0x103/0x150 > [] driver_probe_device+0x222/0x490 > [] __driver_attach+0x84/0x90 > [] ? driver_probe_device+0x490/0x490 > [] bus_for_each_dev+0x6c/0xc0 > [] driver_attach+0x1e/0x20 > [] bus_add_driver+0x1eb/0x280 > [] driver_register+0x60/0xe0 > [] __pci_register_driver+0x4c/0x50 > [] drm_pci_init+0xe0/0x110 [drm] > [] ? 0xa06e6000 > [] i915_init+0xa4/0xab [i915] > [] do_one_initcall+0xb3/0x200 > [] ? __vunmap+0x91/0xe0 > [] do_init_module+0x5f/0x1ef > [] load_module+0x2197/0x27e0 > [] ? symbol_put_addr+0x50/0x50 > [] ? __pte_alloc_kernel+0xa5/0xf0 > [] SyS_init_module+0x14e/0x190 > [] entry_SYSCALL_64_fastpath+0x12/0x71 > ---[ end trace d2652104b24a32ff ]--- > > ___ > Kernelnewbies mailing list > Kernelnewbies@kernelnewbies.org > http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies > -- -- Leônidas S. Barbosa (Kirotawa) blog: corecode.wordpress.com ___ Kernelnewbies mailing list Kernelnewbies@kernelnewbies.org http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies
Re: module debugging
IMO, I believe if you module is using/hanging all processors it's impossible to kernel use any to print stuffs. What about try Sysrq [1] ? I used it once in a power system plus xmon, but I'll be honest not sure how it works on x86. https://www.kernel.org/doc/Documentation/sysrq.txt On Fri, Aug 21, 2015 at 8:06 AM, Salam Farhat salal...@gmail.com wrote: Hi, I am not sure if this is the place to ask, if so please let me know where to do so. I am using a kernel module that I modified slightly to work on my current kernel version. It is running on a virtual machine and on a heavy load it goes into an infinite loop and freezes the system. I can tell that the virtual machine is using 100% of its assigned cpu. There are print statements almost everywhere in the module, but after a few seconds none get printed. The kernel has the following options already enabled: CONFIG_DETECT_SOFTLOCKUP and CONFIG_DETECT_HUNG_TASK. To my understanding the kernel is supposed to print the stack trace when a hung task is detected, however, nothing gets printed in kern.log. I am not sure if this is the place where the kernel would dump the stack or if the print process is affected by the hang since the print statements in the module are not being printed as well. I would like to know how to debug this issue. Any help is appreciated. Thank you. ___ Kernelnewbies mailing list Kernelnewbies@kernelnewbies.org http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies -- -- Leônidas S. Barbosa (Kirotawa) blog: corecode.wordpress.com ___ Kernelnewbies mailing list Kernelnewbies@kernelnewbies.org http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies
Re: Safety in Kernel Development
For memory leaks kernel has a clever mechanism to verify it that you can enable in .config for use [1]. You can also uses Sparse in kernel for static analyze purpose. There are others out there such as coverity scan, coccinelle, etc. [1] https://www.kernel.org/doc/Documentation/kmemleak.txt []'s On Tue, Aug 18, 2015 at 10:45 AM, Kenneth Adam Miller kennethadammil...@gmail.com wrote: Why? That's what the vast majority of the kernel is written in (besides assembler, but what I'm looking for isn't a way to write safe assembler). Plus, tons of people in the kernel development community *must* have some concern or interest in security. I don't care if the kernel is written in C, but I sure would like my kernel module to be safer. If I can get it I don't care what language it's in-it just has to work and *be secure*. On Tue, Aug 18, 2015 at 9:40 AM, Robert P. J. Day rpj...@crashcourse.ca wrote: On Tue, 18 Aug 2015, Kenneth Adam Miller wrote: Ok- so I know that C is the defacto standard for kernel development... and that's probably where you should have stopped typing. :-) rday -- Robert P. J. Day Ottawa, Ontario, CANADA http://crashcourse.ca Twitter: http://twitter.com/rpjday LinkedIn: http://ca.linkedin.com/in/rpjday ___ Kernelnewbies mailing list Kernelnewbies@kernelnewbies.org http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies -- -- Leônidas S. Barbosa (Kirotawa) blog: corecode.wordpress.com ___ Kernelnewbies mailing list Kernelnewbies@kernelnewbies.org http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies
Re: how to delete kernels cleanly
I often delete files related to these kernels in /boot/, then grub2-mkconfig -o /boot/grub/grub.cf , but I'm quite sure lib/modules will still remain On Wed, Jul 22, 2015 at 11:41 AM, Ahmed Soliman ahmedsoliman0x...@gmail.com wrote: I have many kernels on my machine and I want to delete some of them what can I do some of these kernels are shipped with the OS ubuntu 14.04 and others I built by make oldconfig make all make modules sudo make modules_install sudo make install now how can I these kernels ___ Kernelnewbies mailing list Kernelnewbies@kernelnewbies.org http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies -- -- Leônidas S. Barbosa (Kirotawa) blog: corecode.wordpress.com ___ Kernelnewbies mailing list Kernelnewbies@kernelnewbies.org http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies
Re: what is the use of #ifndefs
it means you don't want to redefine a .h file On Mon, Jul 20, 2015 at 7:03 AM, Ahmed Soliman ahmedsoliman0x...@gmail.com wrote: currently I started reading through the linux kernel and I started reading liunx/include/linux/list.h I understood some of the functions but still I dont know what does these lines of code do #ifndef _LINUX_LIST_H #define _LINUX_LIST_H which exist at the very beginning of the file I also noticed that there is many similar ifndefs in almost any .h file in the kernel note that I understand wnat does ifndef do bu I dont understand what goal is it supposed to achieve at the beginning of the headerfile ___ Kernelnewbies mailing list Kernelnewbies@kernelnewbies.org http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies -- -- Leônidas S. Barbosa (Kirotawa) blog: corecode.wordpress.com ___ Kernelnewbies mailing list Kernelnewbies@kernelnewbies.org http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies
Re: 4.1-rc1 fails with O3 optimization
I could boot it using qemu. So what's the point? On Tue, Apr 28, 2015 at 2:41 AM, Andev debian...@gmail.com wrote: On Mon, Apr 27, 2015 at 9:00 PM, Bobby Powers bobbypow...@gmail.com wrote: Hello, Andev wrote: I usually compile my kernel with an unsupported O3 option(why not? :). Because there have been publications that show on major benchmarks, the effects of -O3 are indistinguishable from noise: http://people.cs.umass.edu/~emery/pubs/Stabilizer-UMass-CS-TR2011-43.pdf Have you noticed that -O3 provides any performance benefits over -O2? Look here: http://www.spinics.net/lists/kernel/msg1962561.html Btw, this will help uncover problems in either gcc or the kernel for sure. So no harm in trying! -- Andev ___ Kernelnewbies mailing list Kernelnewbies@kernelnewbies.org http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies -- -- Leônidas S. Barbosa (Kirotawa) blog: corecode.wordpress.com ___ Kernelnewbies mailing list Kernelnewbies@kernelnewbies.org http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies
Re: 4.1-rc1 fails with O3 optimization
that .config you sent is for 4.0-rc2, is that right? here is the diff after a make oldconfig [1] [1] http://pastebin.com/4Lfs2it0 On Tue, Apr 28, 2015 at 12:35 PM, Andev debian...@gmail.com wrote: On Tue, Apr 28, 2015 at 9:03 AM, leo kirotawa kirot...@gmail.com wrote: I could boot it using qemu. So what's the point? Could you try the attached config and see if it boots? On Tue, Apr 28, 2015 at 2:41 AM, Andev debian...@gmail.com wrote: On Mon, Apr 27, 2015 at 9:00 PM, Bobby Powers bobbypow...@gmail.com wrote: Hello, Andev wrote: I usually compile my kernel with an unsupported O3 option(why not? :). Because there have been publications that show on major benchmarks, the effects of -O3 are indistinguishable from noise: http://people.cs.umass.edu/~emery/pubs/Stabilizer-UMass-CS-TR2011-43.pdf Have you noticed that -O3 provides any performance benefits over -O2? Look here: http://www.spinics.net/lists/kernel/msg1962561.html Btw, this will help uncover problems in either gcc or the kernel for sure. So no harm in trying! -- Andev ___ Kernelnewbies mailing list Kernelnewbies@kernelnewbies.org http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies -- -- Leônidas S. Barbosa (Kirotawa) blog: corecode.wordpress.com -- Andev -- -- Leônidas S. Barbosa (Kirotawa) blog: corecode.wordpress.com ___ Kernelnewbies mailing list Kernelnewbies@kernelnewbies.org http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies
Re: 4.1-rc1 fails with O3 optimization
With this .config you sent kernel does not boot. On Tue, Apr 28, 2015 at 1:46 PM, leo kirotawa kirot...@gmail.com wrote: that .config you sent is for 4.0-rc2, is that right? here is the diff after a make oldconfig [1] [1] http://pastebin.com/4Lfs2it0 On Tue, Apr 28, 2015 at 12:35 PM, Andev debian...@gmail.com wrote: On Tue, Apr 28, 2015 at 9:03 AM, leo kirotawa kirot...@gmail.com wrote: I could boot it using qemu. So what's the point? Could you try the attached config and see if it boots? On Tue, Apr 28, 2015 at 2:41 AM, Andev debian...@gmail.com wrote: On Mon, Apr 27, 2015 at 9:00 PM, Bobby Powers bobbypow...@gmail.com wrote: Hello, Andev wrote: I usually compile my kernel with an unsupported O3 option(why not? :). Because there have been publications that show on major benchmarks, the effects of -O3 are indistinguishable from noise: http://people.cs.umass.edu/~emery/pubs/Stabilizer-UMass-CS-TR2011-43.pdf Have you noticed that -O3 provides any performance benefits over -O2? Look here: http://www.spinics.net/lists/kernel/msg1962561.html Btw, this will help uncover problems in either gcc or the kernel for sure. So no harm in trying! -- Andev ___ Kernelnewbies mailing list Kernelnewbies@kernelnewbies.org http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies -- -- Leônidas S. Barbosa (Kirotawa) blog: corecode.wordpress.com -- Andev -- -- Leônidas S. Barbosa (Kirotawa) blog: corecode.wordpress.com -- -- Leônidas S. Barbosa (Kirotawa) blog: corecode.wordpress.com ___ Kernelnewbies mailing list Kernelnewbies@kernelnewbies.org http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies
Re: 4.1-rc1 fails with O3 optimization
Yep, I can try. Do you know when this issue start ? On Tue, Apr 28, 2015 at 3:18 PM, Andev debian...@gmail.com wrote: On Tue, Apr 28, 2015 at 1:40 PM, leo kirotawa kirot...@gmail.com wrote: With this .config you sent kernel does not boot. Yup, could you try to bisect what commit is causing this failure? -- Andev -- -- Leônidas S. Barbosa (Kirotawa) blog: corecode.wordpress.com ___ Kernelnewbies mailing list Kernelnewbies@kernelnewbies.org http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies
scatterlist copy to buffer and copy back
Hi there, I'm facing with an issue that from a module the user sends a scatterlist which has sizes not power of two and because that I can not handle it properly in my module in other side. An example is: - scatterlist entries size 3 and data size 4096. - in other side module needs to build blocks in power of two sizes, but since scatterlist are size 3 or any size not power of two it's not possible. From my understanding, entries gives a segment's size of the buffer passed. And each entries has an address to this piece. So if buffer is something like this: || - buffer scatter list will be spread in memory like this: | entry | entry | entry | ..., of course spread in memory. As a solution I'm thinking in copy those scatterlist to a buffer and process this buffer as a power of two sizes pieces, and so put the result in the output buffer and into the output scatterlist size not power of two. I know it seems a stupid solution, since scatterlist were done to help spread data from a buffer in not continual space and improve performance. So... *Question is*, is there any way I can copy a scatterlist size 3 to another scatterlist size power of two or any size? I didn't see any function in scatterlist.c api for this, just those solutions to copy from to buffer or buffer to scatterlist. Any suggestions or tips are very welcome :) Thanks in advance, -- -- Leônidas S. Barbosa (Kirotawa) blog: corecode.wordpress.com ___ Kernelnewbies mailing list Kernelnewbies@kernelnewbies.org http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies
Re: Skb Documentation?
git grep is your friend. :) http://www.linuxjournal.com/article/1312 On Thu, Aug 14, 2014 at 1:40 PM, Nick Krause xerofo...@gmail.com wrote: After searching around in the documentation directory, I need no information on skb data structure and other information relating to skb data type. If someone knowns where there is Documentation in the kernel directory please tell me, otherwise I would be glad to write up. Regards Nick ___ Kernelnewbies mailing list Kernelnewbies@kernelnewbies.org http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies -- -- Leônidas S. Barbosa (Kirotawa) blog: corecode.wordpress.com ___ Kernelnewbies mailing list Kernelnewbies@kernelnewbies.org http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies
Re: Eudyptula Challenge Submission and no response?
Sometimes they take a long time to answer, maybe they are stuck again, just be patient and resend :) On Thu, Jun 5, 2014 at 10:10 AM, Kristofer Hallin kristofer.hal...@gmail.com wrote: Guess the scripts are somewhat busy, give them a few more days. On Thu, Jun 5, 2014 at 3:05 PM, Fernando Apesteguía fernando.apesteg...@gmail.com wrote: El 05/06/2014 14:59, George E. Moore g...@x-ctr-l.com escribió: Is there a POC (email contact for Eudyptula Challenge)? Submitted response to Eudyptula Challenge, task 01 (05/23/14) and have yet to receive response. Patience. A lot of people are taking the challenge. Cheers. -- ___ Kernelnewbies mailing list Kernelnewbies@kernelnewbies.org http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies ___ Kernelnewbies mailing list Kernelnewbies@kernelnewbies.org http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies ___ Kernelnewbies mailing list Kernelnewbies@kernelnewbies.org http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies -- -- Leônidas S. Barbosa (Kirotawa) blog: corecode.wordpress.com ___ Kernelnewbies mailing list Kernelnewbies@kernelnewbies.org http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies
Re: How to fix ubuntu 12.10 can't start with kernel 3.15?
Did you type make modules ? It's sounding as module issue. On Wed, May 21, 2014 at 10:16 AM, lx lxlenovos...@gmail.com wrote: hi all: I get the kernel in branch: git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git And I config and make it by: make localmodconfig make make modules_install make install when these have done, I reboot the computer. I can see kernel 3.15 in grub list. When I start with it, the screen is: Loading Linux 3.15.0-rc5+ ... Loading initial ramdisk ... then the screen stopped. So How can fix it? I can't find any useful error messages because the computer don't get into the kernel. Thank you. ___ Kernelnewbies mailing list Kernelnewbies@kernelnewbies.org http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies -- -- Leônidas S. Barbosa (Kirotawa) blog: corecode.wordpress.com ___ Kernelnewbies mailing list Kernelnewbies@kernelnewbies.org http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies
Re: Eudyptula Challenge Task 02 Doubt
I sent the first lines from dmesg, it shows the info of system boot. On Sat, May 17, 2014 at 2:08 AM, me storage me.storage...@gmail.com wrote: Hai i successfully completed task 2 but i don't what files i have to send for proof. So can any one please tell me how to prove the custom kernel is booting? thanks ___ Kernelnewbies mailing list Kernelnewbies@kernelnewbies.org http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies -- -- Leônidas S. Barbosa (Kirotawa) ___ Kernelnewbies mailing list Kernelnewbies@kernelnewbies.org http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies
Re: Linux Device Driver
Book I would recommend: Linux Devices Drivers [1]. And to get familiar with kernel stuff [2] [1] https://lwn.net/Kernel/LDD3/ [2] http://eudyptula-challenge.org/ []'s On Mon, May 5, 2014 at 11:16 AM, Saurabh Jain saurabh4768j...@gmail.com wrote: Hello everyone! I am new to Linux Kernel . i studied a about CFS and processes a little bit. I want to write Device Drivers for Linux Kernel . Can any body tell me from where i should start? I completely new to this field , i do not know how to start and from where to start? Any recommended book ? ___ Kernelnewbies mailing list Kernelnewbies@kernelnewbies.org http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies -- -- Leônidas S. Barbosa (Kirotawa) ___ Kernelnewbies mailing list Kernelnewbies@kernelnewbies.org http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies
Re: Linux Device Driver
As they say, kernel code is the better and updated source/documentation. There is no an updated book. =) On Mon, May 5, 2014 at 11:37 AM, Lucas Tanure tan...@linux.com wrote: Yeah, but https://lwn.net/Kernel/LDD3/ it's a little bit old. -- -- Leônidas S. Barbosa (Kirotawa) ___ Kernelnewbies mailing list Kernelnewbies@kernelnewbies.org http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies
Re: How can I send multiple patches?
I like to think that if they applies to different parts , all separate is better. On Thu, Oct 31, 2013 at 1:55 PM, Aldo Iljazi m...@aldo.io wrote: Hello everyone, I have a question. Let's say I have four patches, how can I send them? Should I send them one-by-one or can I send them all together? Could you give me one example? Thanks. -- Aldo Iljazi ___ Kernelnewbies mailing list Kernelnewbies@kernelnewbies.org http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies -- -- Leônidas S. Barbosa (Kirotawa) ___ Kernelnewbies mailing list Kernelnewbies@kernelnewbies.org http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies
Re: kexec
Sorry, silly question, but did you try as root? kexec load tries to put the knew kernel on memory and after that tries a syscall to kexec_load to finish with a kexec_reboot, since it handles with mem and syscalls maybe just as a root you will run it properly Also have that ke...@lists.infradead.org list. []'s On Thu, Oct 3, 2013 at 10:05 AM, Dmitry Kolesov apolen...@gmail.com wrote: Hello. Could anybody help with kexec. I cannot find some informaton from google. I try to use kexec for fast boot new kernel but I have error below: # kexec -l /boot/vmlinuz-3.12.0-rc1+ --initrd=/boot/initramfs-3.12.0-rc1+.img --command-line=$(cat /proc/cmdline) kexec_load failed: Operation not permitted entry = 0x24eff5790 flags = 3e nr_segments = 3 segment[0].buf = 0x7fd169783210 segment[0].bufsz = 505250 segment[0].mem = 0x24d00 segment[0].memsz = 1413000 segment[1].buf = 0xbc3770 segment[1].bufsz = 4310 segment[1].mem = 0x24efef000 segment[1].memsz = 5000 segment[2].buf = 0xbba650 segment[2].bufsz = 90e0 segment[2].mem = 0x24eff5000 segment[2].memsz = b000 KEXEC option in the config is enabled. How can I decid this problem? Regards, Dmitry ___ Kernelnewbies mailing list Kernelnewbies@kernelnewbies.org http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies -- -- Leônidas S. Barbosa (Kirotawa) ___ Kernelnewbies mailing list Kernelnewbies@kernelnewbies.org http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies
Kexec sys call code
Hi, I'm working in a project and there I need use kexec code to do somethings. I read a lot of the kexec-tools code (user-land) and kexec-sys call (k-land) and I'd like to be sure about some arguments there. In kexec we have that kexec_image and into it that nr_segments and the segments itself. I know that kernel image passed by kexec in user land (bzImage) is copy in a buffer and in kexe_load it receives the entry point for this new kernel (bzImage) and the start position where (I'm supposing ) start the kernel image. So , my question is, using that nr_segments or segemtns by itself can I determine the size of the bzImage/image in kexec-sys call? And these guesses about entry point and the address of start kernel image, is it correct? This is the kexec.c file (where we have the sys call and a bunch of another code). http://lxr.free-electrons.com/source/kernel/kexec.c -- -- Leônidas S. Barbosa (Kirotawa) ___ Kernelnewbies mailing list Kernelnewbies@kernelnewbies.org http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies
Re: Will kernel in-place decompression overwrite uncompressed part ?
I don't know if it can help you, but let's try. [1] What I understand about that is. The compressed kernel is in fact a bzImage or some zImage kernel, and it is a file. As the link says in that compressed file we have this header that makes some early configurations. The kernel is uncompressed into the memory and the compressed kernel remains in the place it was before. Just what matter by the compressed kernel is that header info that it use to setup the stack to the new kernel. I'm no sure if I'm talking some nosense, but that was what I saw in kernel boot files. Maybe some others mate here can complement or fix my thoughts here. [1] http://www.ibm.com/developerworks/library/l-linuxboot/ On Fri, Mar 8, 2013 at 10:12 PM, Jacky jackycli...@163.com wrote: Dear All, Before, kernel first decompressed to other memory location and then merged and put at final destination. Now, kernel decompression are decompressed in-place, so-called in-place decompression. But the compressed part is encompassed by uncompressed part. So, after decompression, will the uncompressed part be overwritten by the decompressed kernel ? If so, some uncompressed part such as deal with kernel relocation will be overwritten by the decompressed kernel, which don't make sense, am I missed something ? Regards, Jacky ___ Kernelnewbies mailing list Kernelnewbies@kernelnewbies.org http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies -- Leônidas S. Barbosa (Kirotawa) Engenheiro de Software - IBM (LTC - Linux Technology Center) MsC Sistemas e Computação Bacharel em Ciências da Computação. blog nerd: corecode.wordpress.com/ http://corecode.wordpress.com/User linux : #480879 Mais sábio é aquele que sabe que não sabe (Sócrates) smile and wave - =D + o/ (Penguins of Madagascar) 日本語の学生です。 コンピュータサイエンスの学位. ___ Kernelnewbies mailing list Kernelnewbies@kernelnewbies.org http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies