Re: Submitted patch, what to do next

2018-03-07 Thread Kamil Konieczny
On 07.03.2018 17:28, Alex Arvelaez wrote:
> Hello,
> 
> I sent a small patch to the LKML. I sent it to one of the mantainers
> (as per get_mantainers.pl) and I CC-ed linux-ker...@vger.kernel.org.

imho you should send it to all e-mails given by get_maintainers

> I'm not entirely sure I did everything properly and I was wondering
> how long does it usually take to get any feedback? It's been a couple
> weeks since I sent it.
> 
> Any advice is appreciated, thanks!

Best regards,
Kamil


___
Kernelnewbies mailing list
Kernelnewbies@kernelnewbies.org
https://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies


Re: How to verify linux-next

2017-10-02 Thread Kamil Konieczny
On 29.09.2017 17:45, valdis.kletni...@vt.edu wrote:
> On Fri, 29 Sep 2017 19:56:41 +0530, Pintu Kumar said:
> 
>> 1) If you have pointers on how to setup ssh/net connection on QEMU
>> with busybox, do let me know.
> 
> Busybox doesn't do that as far as I know, as it's intended as a single-user
> /sbin/init replacement. You'll need a full-featured userspace with an actual
> init daemon (sysvinit, systemd, etc) and an ssh daemon (openssh, or if you 
> want [...]

What about /usr/bin/ssh as init replacement ?

-- 
Best regards,
Kamil Konieczny
Samsung R Institute Poland


___
Kernelnewbies mailing list
Kernelnewbies@kernelnewbies.org
https://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies


Re: Don't know where to start linux kernel programming

2017-08-22 Thread Kamil Konieczny
Hi,

On 22.08.2017 12:52, SUNIL KHORWAL wrote:

> I'm new to linux kernel programming, I want to be a linux kernel hacker but
> i don't know where to start.
> Please help me.

Start from https://kernelnewbies.org/
https://lwn.net/
https://www.kernel.org/

You are using gmail, so this may help:

linux/Documentation/process/email-clients.rst

or

http://elixir.free-electrons.com/linux/v4.13-rc6/source/Documentation/process
http://elixir.free-electrons.com/linux/v4.13-rc6/source/Documentation/process/email-clients.rst

There is eudyptula challange (currently busy, no new subscriptions)
and there is note about [not] using gmail for kernel:

https://events.linuxfoundation.org/sites/events/files/slides/ec.pdf

-- 
Best regards,
Kamil Konieczny
Samsung R Institute Poland


___
Kernelnewbies mailing list
Kernelnewbies@kernelnewbies.org
https://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies


Re: version number of Linux kernel development

2017-08-01 Thread Kamil Konieczny
Hi,

On 01.08.2017 06:35, Yubin Ruan wrote:
> Hi, 
> [...]
> 
> So, in this example, 4.2.7 would be thrown away after 4.4.0 is released. Is
> this the same for every major release? [...]

see also https://www.kernel.org/category/releases.html

-- 
Best regards,
Kamil Konieczny
Samsung R Institute Poland


___
Kernelnewbies mailing list
Kernelnewbies@kernelnewbies.org
https://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies


Re: version number of Linux kernel development

2017-08-01 Thread Kamil Konieczny


On 01.08.2017 06:35, Yubin Ruan wrote:
> Hi, 
> I got a question regarding to Linux's version number. [...]

> So, in this example, 4.2.7 would be thrown away after 4.4.0 is released. Is
> this the same for every major release?
> 
> I see a series of 4.4.x release, ranging from 4.4.1 ~ 4.4.49, at 
> http://elixir.free-electrons.com/linux/latest/source
> which really confused me. Accoding to the model above, there should be only
> 4.4.7. After that, it would 4.5.x.

Look at https://www.kernel.org/

there are "longterm" branches, they are developed until EOL (end-of-life)

for example, there is now 4.4.79 branch

as i see this, some branches are selected to be "longterm",
and they get the same set patches

-- 
Best regards,
Kamil Konieczny
Samsung R Institute Poland


___
Kernelnewbies mailing list
Kernelnewbies@kernelnewbies.org
https://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies


Re: Need help to understand Linux kernel source versioning systems

2017-07-25 Thread Kamil Konieczny
On 24.07.2017 14:56, vibnwis wrote:

> Being a newbie, I encountered the following scenarios when tracing
> build_kernel.sh script from eewiki. Would someone help me to understand why
> please? From my experience, I would to summarize the following scenario.
> 
> 1. First, source is cloned from
> https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git and
> checked for release version, "v4.10.17". Obviously it has no kernel tag of
> "v4.10.17", but "v4.10" [...]

You should stick to longterm or current branch,
see https://www.kernel.org/

note that stable can be End-of-Life = EOL

stable: 4.12.3  2017-07-21
stable: 4.11.12 [EOL]   2017-07-21
longterm:   4.9.39  2017-07-21

Best regards,
Kamil

___
Kernelnewbies mailing list
Kernelnewbies@kernelnewbies.org
https://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies


Re: GRUB always enters a rescue shell.

2017-07-24 Thread Kamil Konieczny


On 22.07.2017 19:35, Aruna Hewapathirane wrote:
[...]
>>> sudo losetup -o $((2048*512)) /dev/loop1 hd.img
>>
>> should'nt it be 63*512 ?
>>
> 
> nope should be 2048 and this is why -->
> https://superuser.com/questions/352572/why-does-the-partition-start-on-sector-2048-instead-of-63

it is for new hard disks,
here it conflicts with geometry used:

>>>> fdisk -u -C100 -S63 -H16 hd.img

and maybe conflicts with Bochs BIOS options or disk geometry options ?

-- 
Best regards,
Kamil Konieczny
Samsung R Institute Poland


___
Kernelnewbies mailing list
Kernelnewbies@kernelnewbies.org
https://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies


Re: GRUB always enters a rescue shell.

2017-07-17 Thread Kamil Konieczny
Hi,

On 13.07.2017 10:39, Hao Lee wrote:

> I encounter a problem when making a bootable disk image because GRUB
> always enters a
> rescue shell.
> 
> I want to create a disk image and install GRUB 2 on it and then use
> Bochs to run it. The steps are as follows.
> [...]

> Bochs BIOS - build: 02/16/17
> ata0 master: Generic 1234 ATA-6 Hard-Disk (  49 MBytes)
> Press F12 for boot menu.
> Booting from Hard Disk...
> .
> error: no such device: c5b2c483-70c2-4212-840b-da5f965d0555.
> error: unknown filesystem.
> Entering rescue mode...
> grub rescue> 
> [...]

Looks like that blkid 'c5b2c483...' is not valid for your boot device,
see command:
blkid

also:
lsblk

or search with google: grub2 without uuid

or discover what uuid your partition will have (or assign it)
or turn to some grub2 guru/forum for help

or it may be problem with disk configuration, like loop1 is using
linear mode, and bochs uses incompatible one (? i am not sure here)
then bios geometry is mixing up sectors sequence

or in step 3:

> sudo losetup -o $((2048*512)) /dev/loop1 hd.img

should'nt it be 63*512 ?


Regards,
Kamil Konieczny

___
Kernelnewbies mailing list
Kernelnewbies@kernelnewbies.org
https://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies


Re: How to alloc_pages from a given physical memory?

2017-07-06 Thread Kamil Konieczny


On 06.07.2017 15:43, kipade wrote:
> Might be? I have no puzzle of CMem。 OK, I will continue go search solutions 
> for that.
> And, if I got it, I will come back for sharing solutions here. 
> And, thank you, all

Are you writing kernel module ?

or you try to compile kernel with cmem module ?

What hardware are you using ?

How are you allocating shmem ?
Can you give few code lines for what you try ?

The more info you give, more help you receive.

Well, it may be faster to go directly to some kernel list or vendor list
with your questions.

>> On 06.07.2017 12:20, kipade wrote:
>>
>>> [...] (I have a look at> the kerrnel source, every omap_bo_object [...]
>>
>>> [...] I use arm 32bit cpu, with kernel 3.14
>>
>>> Here I want to allocate a block of shared memory from a given physical
>>> address, such as 0x9000, 6M. [...]
>>
>> it is well beyond newbie, you may find help on vendor forum,
>> i guess it is TI (Texas Instruments) Sitara SoC,
>> google search gives first hit:
>>
>> http://processors.wiki.ti.com/index.php/CMEM_Overview

-- 
Best regards,
Kamil Konieczny
Samsung R Institute Poland



___
Kernelnewbies mailing list
Kernelnewbies@kernelnewbies.org
https://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies


Re: How to alloc_pages from a given physical memory?

2017-07-06 Thread Kamil Konieczny


On 06.07.2017 12:20, kipade wrote:

> [...] (I have a look at> the kerrnel source, every omap_bo_object [...]

> [...] I use arm 32bit cpu, with kernel 3.14

> Here I want to allocate a block of shared memory from a given physical
> address, such as 0x9000, 6M. [...]

it is well beyond newbie, you may find help on vendor forum,
i guess it is TI (Texas Instruments) Sitara SoC,
google search gives first hit:

http://processors.wiki.ti.com/index.php/CMEM_Overview

-- 
Best regards,
Kamil Konieczny
Samsung R Institute Poland


___
Kernelnewbies mailing list
Kernelnewbies@kernelnewbies.org
https://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies


Re: How to alloc_pages from a given physical memory?

2017-07-06 Thread Kamil Konieczny


On 06.07.2017 11:43, kipade wrote:
> In fact, I want to allocate a continous of pages from a given physical 
> address for a shm object in
> 
> shmem_file_setup, might i should write a customized shmem_file_setup2 
> for this?

> I use arm 32bit cpu, with kernel 3.14

why do want this specific address 0x9000 ?

can it be 0x4000 ? or 0x5000 ? or 0x6888 ?

is this 0x9000 located in hardware registers ?

some memory regions are not accessible directly for allocation,
because they are used for communication with hardware SoC,
and so they are used by kernel drivers or directly by kernel

kernel driver may or may not expose that memory region for user space,
but this is driver work

maybe you should ask on platform forum,
you did not answer my question on what platform you are working

>>>> On 06.07.2017 05:08, kipade wrote:
>>>>> Here I want to allocate a block of shared memory from a given physical
>>>>> address, such as 0x9000, 6M. However, alloc_pages can't fit this
>>>>> point. I had reserved enugh pages via cmem, there also have enough
>>>>> continous pages for such allocation anywhere else. What should I do?

-- 
Best regards,
Kamil Konieczny
Samsung R Institute Poland


___
Kernelnewbies mailing list
Kernelnewbies@kernelnewbies.org
https://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies


Re: How to alloc_pages from a given physical memory?

2017-07-06 Thread Kamil Konieczny


On 06.07.2017 11:04, kipade wrote:
> I use arm 32bit cpu, with kernel 3.14

banana-pi ? nano-pi ? orange-pi ? odroid ?

Is it memory region for system registers ?

>> On 06.07.2017 05:08, kipade wrote:
>>> Here I want to allocate a block of shared memory from a given physical
>>> address, such as 0x9000, 6M. However, alloc_pages can't fit this
>>> point. I had reserved enugh pages via cmem, there also have enough
>>> continous pages for such allocation anywhere else. What should I do?
-- 
Best regards,
Kamil Konieczny
Samsung R Institute Poland


___
Kernelnewbies mailing list
Kernelnewbies@kernelnewbies.org
https://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies


Re: How to alloc_pages from a given physical memory?

2017-07-06 Thread Kamil Konieczny


On 06.07.2017 05:08, kipade wrote:
> Here I want to allocate a block of shared memory from a given physical 
> address, such as 0x9000, 6M. However, alloc_pages can't fit this 
> point. I had reserved enugh pages via cmem, there also have enough 
> continous pages for such allocation anywhere else. What should I do?

On what platform are you working ?

I think this is platfrom depended.

-- 
Best regards,
Kamil Konieczny
Samsung R Institute Poland


___
Kernelnewbies mailing list
Kernelnewbies@kernelnewbies.org
https://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies


Re: building af_packet as a kernel module

2017-07-03 Thread Kamil Konieczny
Hi,

On 30.06.2017 06:06, Kevin Wilson wrote:
> [...]
> I am using Ubuntu 16.04.
> 
> After reboot, the af_packet.ko kernel module is loaded:
> lsmod

> af_packet  45056  2
> 
> But I cannot remove it:
> rmmod af_packet
> rmmod: ERROR: Module af_packet is in use
> 
> I want to be able to rmmod it, for adding debug printing, etc.
> [...]
I googled this:

https://stackoverflow.com/questions/448999/is-there-a-way-to-figure-out-what-is-using-a-linux-kernel-module

and short answer is to use 'lsof' command (ls open files),
if lsmod fails to give ref info

-- 
Best regards,
Kamil Konieczny
Samsung R Institute Poland


___
Kernelnewbies mailing list
Kernelnewbies@kernelnewbies.org
https://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies


Re: building af_packet as a kernel module

2017-07-03 Thread Kamil Konieczny


On 03.07.2017 16:02, Aruna Hewapathirane wrote:
> [...]
> enable internet by running : /sbin/ifconfig etho0 down

sudo /sbin/ifconfig eno1 up

or eth0 or whatever your system names its ethernet devices

> [...]

List net interfaces with:

sudo /sbin/ifconfig

-- 
Best regards,
Kamil Konieczny
Samsung R Institute Poland

___
Kernelnewbies mailing list
Kernelnewbies@kernelnewbies.org
https://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies


Re: Struct sk_buff_head

2017-06-16 Thread Kamil Konieczny
Hi,

On 06/07/2017 09:36 PM, wiktoria.lewicka wrote:
> I read code from file include/linux/skbuff.h and I have question about 
> sk_buff_head structure. 
> [...]
> Is this union replace sk_buff_head structure? 
> I didn`t found any field in sk_buff, which may use sk_buff_head, [...]

As I can see it, sk_buff can be on double-linked list,
and then it is linked by next and prev,
or it is referenced by red-black tree, rb_node,
depending of some network logic (packet type ?)

Both are used by functions operating on structures.

-- 
Best regards,
Kamil Konieczny
Samsung R Institute Poland


___
Kernelnewbies mailing list
Kernelnewbies@kernelnewbies.org
https://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies