There are those ubuntu hwe kernels, those might help
-- Richard
___
Kernelnewbies mailing list
Kernelnewbies@kernelnewbies.org
https://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies
"Mastering
Embedded Linux Programming" (forgot author but it's from Packt) is a
good book on such things
-- Richard
On 12/04/2024 15:53, Lev Olshvang wrote:
Hi list,
uboot requires that kernel entry point and load address be specified
at FIT spec
I thought this indo Should b
iversities is
not really the subject but teaching people the skills to actually
acquire knowledge themselves and abstract thinking.
-- Richard
On Sat, Dec 9, 2023 at 8:01 PM Richard <mailto:richard_siegfr...@systemli.org>> wrote:
I looked at this,
L4 is a family of Micr
. Actually all this is similar to Xen.
Since you are interested in those things I would really recommend
reading one of the textbooks. "Modern Operating Systems" by Tanenbaum
even has a chapter on exactly this it's called "Are hypervisors
microkernels done right?"
-- Richard
Easy
Pieces"
(https://techiefood4u.files.wordpress.com/2020/02/operating_systems_three_easy_pieces.pdf
)
It's almost as good as the Tanenbaum Classic, but free.
-- Richard
On Fri, Dec 8, 2023 at 2:15 AM <mailto:jim.cro...@gmail.com>> wrote:
On Mon, Dec 4, 2023 at 1:0
ring curiosity maybe) but
google, maybe there is something like this, you might also like Debian
GNU k FreeBSD
-- Richard
--
Mario.
___
Kernelnewbies mailing list
Kernelnewbies@kernelnewbies.org
https://lists.kernelne
e old device model.
So in the end every driver developer has to learn both models :D
When Pat and I created it, we were young and naive and thought "this
should be simple!" Famous last words...
:D
thanks,
greg k-h
Thank you!,
Richard
__
d me, even if we had come to an agreement that
this architecture was unelegent (which it isn't I see the point now), I
don't think that would have been reason enough to change it.
Change is good if it is needed, that's how code evolves, based on new
cally, to understand them but also the
philosophy behind them.
However changing something so fundamental just because of an
(hypothetical) agreement on design elegance is not enough in my oppinion.
Thanks,
-- Richard
___
Kernelnewbies
Hi all,
Why do we have ktypes (struct kobj_type) AND device classes (struct class)?
Don't they serve the same purpose (more or less) and it would be
simpler, clearer and more KISS to only have one? Is this a historically
grown thing or by design?
Thanks,
-- Richard
, as a prerequisite, I recommend you to read "Linux Kernel
Development" by Robert Love. It's important to get the fundamental
differences to user space. For example the whole thing that there is
process context and interrupt context. And what softirqs are.
-- Richard
On 04.08.23 1
is that?
I once read that every module in the system (builtin or not) is in
/sys/module, is that wrong?
Thanks,
-- Richard
___
Kernelnewbies mailing list
Kernelnewbies@kernelnewbies.org
https://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies
.
-- Richard
On 13.06.23 23:31, Richard wrote:
Hi,
is there a possibility, in sysfs, to watch for new symlinks (i.e.
devices) beeing added to /sys/bus/usb/devices (like with inotify for
normal directories)?
I know you can use select() (userspace) and sysfs_notify() (kernelspace)
for attributes
devices (or
symlinks)?
Thanks,
-- Richard
___
Kernelnewbies mailing list
Kernelnewbies@kernelnewbies.org
https://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies
generated ? Maybe I'm missing something here
-- Richard
___
Kernelnewbies mailing list
Kernelnewbies@kernelnewbies.org
https://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies
there is a nfs-kernel-server package
on debian.
When all this is setup the kernelmodule gets loaded, that is maybe done
by udev or by systemd, I don't know the details.
It should be similar for cifs, in that you need to do some configuration
in userspace first.
Cheers,
-- Richard
cases differ (when starting from the same base .config). In
general menuconfig adds more options (lines) than olddefconfig.
What is the difference between the two cases? When should I use
olddefconfig, when should I use the menuconfig approach?
Thanks,
-- Richard
ust an optimisation. Or is optimistic
spinning only accessible with CONFIG_MUTEX_SPIN_ON_OWNER.
The mentioning of the first spinlock in the first sentence confuses me.
Thanks,
-- Richard
___
Kernelnewbies mailing list
Kernelnewbies@kernelnewbies.org
ht
thing. Maybe some
mail clients allow you to save the file directly
-- Richard
On 06/10/2022 10:21, neutrino network wrote:
Hello,
How to extract patches from the kernel mailing list?
Best.
___
Kernelnewbies mailing list
Kernelnewbies
On 08/07/2022 10:36, Tom Mitchell wrote:
On Thu, Jul 7, 2022 at 2:27 AM Chan Kim wrote:
Hi all,
I'm trying to track how tftp program runs when I run tftp provided by
busybox on qemu virtual machine.
I can debug the linux source but I cannot debug tftp (busybox) program.
Can I debug
as usually with your prefered tool (emacs recommended :) ).
If it has to be in quemu, I see no reason against it, the normal rules
for remote debugging apply.
-- Richard Sailer
On 07/07/2022 11:27, Chan Kim wrote:
Hi all,
I'm trying to track how tftp program runs when I run tftp provided
ine kernel.
Hope this helps. I might or might not write something more concrete on
the code if you include a link in your answer
-- Richard
On 09/06/2022 15:39, Andrea Tomassetti wrote:
I'm writing here as a last resort in the hope that someone can,
kindly, help me understand what I'm doing wro
I can't remember
> now what was it, perhaps we should document the expectations?
> (Is that for JFFS2 to mount?)
a long time ago mount didn't accept character devices, so you had to pass
mtdblockX to mount
JFFS2.
This limitation is gone.
Thanks,
//richard
_
On Thu, Jul 22, 2021 at 1:11 PM Pintu Agarwal wrote:
>
> On Thu, 22 Jul 2021 at 02:24, Richard Weinberger wrote:
> >
> > - Ursprüngliche Mail -
> > >> But let me advertise ubiblock a second time.
> > > Sorry, I could not understand about the
ry about the integrity at all ?
Static volumes have a crc32 checksum over the whole content.
Of course this offers no cryptographic integrity.
See: http://www.linux-mtd.infradead.org/doc/ubi.html#L_overview
Thanks,
//richard
___
Kernelnewbies mailing
Is it about cryptographic integrity of your storage or detecting
errors after the flashing process?
But let me advertise ubiblock a second time. If you place your squashfs on
a UBI static volume, UBI knows the exact length and you can checksum it
more easily.
Thanks,
//richard
_
- Ursprüngliche Mail -
> Von: "Pintu Agarwal"
> An: "richard"
> CC: "Greg KH" , "linux-kernel"
> , "linux-mtd"
> , "linux-fsdevel"
> , "Phillip Lougher"
> , "Sean Nyekjaer" , "Kern
- Ursprüngliche Mail -
> Von: "Greg KH"
> An: "Pintu Agarwal"
> CC: "linux-kernel" , "linux-mtd"
> , "linux-fsdevel"
> , "Phillip Lougher" ,
> "Sean Nyekjaer" ,
> "Kernelnewbies" , &q
UBI and your flash program tool keeps track of
what pages it wrote.
Thanks,
//richard
___
Kernelnewbies mailing list
Kernelnewbies@kernelnewbies.org
https://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies
e case. Is your image creation process so error prone
that you can't be sure whether critical parts got included or not?
--
Thanks,
//richard
___
Kernelnewbies mailing list
Kernelnewbies@kernelnewbies.org
https://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies
Hi,
Fortunately I wrote a seminar paper some years ago at university about
exactly that topic. It might help and should still be up to date in all
important regards. https://github.com/richi235/ftrace-paper
I used ftrace to trace the way of a packet, the pdf is in Document/
Cheers,
-- Richard
On 25/08/2020 21:18, Konstantin Ryabitsev wrote:
> The best way to send out patches is using git-send-email directly. It's
> pretty straightforward to configure git to use Gmail smtp for this
> purpose.
>
> You can continue using Thunderbird when replying to conversations, or
> you can take a
On 18/07/2020 00:46, Valdis Klētnieks wrote:
> On Fri, 17 Jul 2020 02:13:34 +0200, Richard Sailer said:
>
>> unsigned long. Is this (correctness and security wise) sane? Because as
>> I understand it put_user() determines the amount it copies from the
>> pointer typ
Link to full source:
https://elixir.bootlin.com/linux/latest/source/net/dccp/proto.c#L390
signature.asc
Description: OpenPGP digital signature
___
Kernelnewbies mailing list
Kernelnewbies@kernelnewbies.org
alisticly in most cases < 9000 (and
in all cases I can imagine < int_max (with 16 bit)).
I would like to declare amount as int outside of the switch case
statement (because I need it in another case statement as signed int)
would it be safe to do so?
Thanks,
-- Richard
signature.asc
Descr
uot; or "alsa" with own
maintainers and own mailing list. Think of them like different
subdivisions in a company (also sometimes called "branch"). In most
cases these "branches" are own repos, not "git branches". I know it's a
bit con
Operating Systems, one being Linux. There it covers its Memory managment
in nice detail.
Thanks,
-- Richard
signature.asc
Description: OpenPGP digital signature
___
Kernelnewbies mailing list
Kernelnewbies@kernelnewbies.org
https://lists.kernelnewbie
Am Sonntag, 12. August 2018, 04:31:17 CEST schrieb Demi Obenour:
> How difficult would it be in the kernel?
Depends on you want to do.
I suggest digging into overlayfs.
Thanks,
//richard
___
Kernelnewbies mailing list
Kernelnewbies@kernelnewbies.
On Fri, Aug 10, 2018 at 5:07 AM Demi Obenour wrote:
>
> How difficult would it be to create a proxy filesystem — that is, a
> filesystem that is a view of the filesystem?
Using FUSE this is easy.
--
Thanks,
//richard
___
Kernelnewbies mai
On 18/07/18 02:35, Richard Siegfried wrote:
> or even "make oldconfig". (If you don't know these two start with "make
^ should be olddefconfig
Both copy the .config file of your current running kernel and use that
as a basis
signature.asc
Descriptio
ce. Start with "make oldconfig"
or even "make oldconfig". (If you don't know these two start with "make
help"). You can always read about new kernel options and features inside
the "make menuconfig" application with pressing "?"
Thanks,
-- Rich
ge fault - exceptions'.
>
> Just want to confirm that "are RT patches for ARM are stable OR they
> are still experimental?" As I heard from my other colleagues that RT
> patches are not stable for ARM and should be avoided.
--
Thanks,
//richard
___
Just fix the page, it is a wiki. :-)
If you need write permission, tell me your nick name.
--
Thanks,
//richard
___
Kernelnewbies mailing list
Kernelnewbies@kernelnewbies.org
http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies
Hi,
If reordering causes TCP to believe packets are lost, there will
probably be other issues as well, like sending of useless retransmits. I would
rather try to detect this kind of reordering and ignore dupacks and rely only
on timeouts to detect loss.
Well this is exactly how TCP-PR works
Hello,
I'm Richard Sailer and I've started implementing an alternative congestion
control algorithm for linux,
capable of maintaining high throughput during persistent packet reordering
(TCP-PR).
Before continuing my learning and work I want to send a coordinative
mail to the netdev list
to run as fast as possible, why don't you create a tasklet?
Remember that you can't sleep in this case.
- Richard
2015-01-13 11:51 GMT-02:00 Victor Ascroft victorascr...@gmail.com:
Hello,
Is it ok to use wait_for_completion in a workqueue?
static void my_work(struct work_struct *work
are hard to find.
So, older newbies add information for new newbies. And the most relevant
questions made here, go to the wiki.
http://kernelnewbies.org/ is already a wiki, feel free to update it.
--
Thanks,
//richard
___
Kernelnewbies mailing list
. :)
--
Thanks,
//richard
___
Kernelnewbies mailing list
Kernelnewbies@kernelnewbies.org
http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies
---
Fixing this should be easy, so I offer this as a newbie task.
1. Find out which commit broke the build (i.e. using git bisect)
2. Fix the build
3. Send me a patch
--
Thanks,
//richard
___
Kernelnewbies mailing list
Kernelnewbies@kernelnewbies.org
Am 02.06.2014 21:06, schrieb valdis.kletni...@vt.edu:
On Mon, 02 Jun 2014 20:56:35 +0200, Richard Weinberger said:
1. Find out which commit broke the build (i.e. using git bisect)
Any hint on a starting value for 'git bisect good v3.mumble'? :)
I don't really now. I don't do out-of-tree
Am 28.01.2014 15:12, schrieb Amit Mahadik:
Thanks Richard. One more question. If I register an SPI irq struct
spi_board_info spi_board_info[] structure in machine board.c file; then the
request irq api and irq handler
should be written in board.c file or in the spidev driver.
Never do any
Am 27.01.2014 10:21, schrieb Amit Mahadik:
Thanks for your input. But I dont want to block the read call. Also I dont
want to miss the interrupts.
Look how other drivers/programs deal with that...
Thanks,
//richard
Regards,
Amit.
On Monday, 27 January 2014 12:22 PM, Richard Weinberger
,
//richard
___
Kernelnewbies mailing list
Kernelnewbies@kernelnewbies.org
http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies
Am 27.01.2014 06:37, schrieb Amit Mahadik:
Thanks for the reply Richard.
The interrupt is not a GPIO pin. I have read something about UIO
(userspace I/O).
Also, I want the operation to be asynchronous. Any pointer to such mechanism
will be very helpful.
Using UIO you can also
On Sat, Jan 25, 2014 at 8:12 AM, phani kumar
yakkaladevi.ph...@gmail.com wrote:
Hi all,
Is there any way to make kernel driver closed(not open source)?
Description: I have driver, I want make it non-open source. how can I do it?
No.
--
Thanks,
//richard
Am 25.01.2014 14:43, schrieb Alexandru Juncu:
On 25 January 2014 12:58, Richard Weinberger
richard.weinber...@gmail.com wrote:
On Sat, Jan 25, 2014 at 8:12 AM, phani kumar
yakkaladevi.ph...@gmail.com wrote:
Hi all,
Is there any way to make kernel driver closed(not open source
of
reading the contents of /sys/block from kernel mode looks messy to me.
Looking for guidance on performing this enumeration.
Why do you need this within the kernel?
Sounds much like a userspace job done in kernel land...
--
Thanks,
//richard
Am 12.11.2013 09:47, schrieb vaibhav:
Thanks for replying Richard,
I need to access the blockdevice structure associated with each block device
so that I can patch its block_device_operations to receive ioctls calls in
my code. In my code I check for ioctls that I handle and pass
On Thu, Oct 3, 2013 at 5:32 PM, james jones james.voip+ker...@gmail.com wrote:
Greetings,
Is there any work being done on a kernel module for generic packet
processing in user space?
Using VFIO you can do a pure userspace NIC driver.
--
Thanks,
//richard
___
Kernelnewbies mailing list
Kernelnewbies@kernelnewbies.org
http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies
.
BTW: Such questions are off-topic here.
This list is on kernel development.
--
Thanks,
//richard
___
Kernelnewbies mailing list
Kernelnewbies@kernelnewbies.org
http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies
of serious users.
One prominent VFIO user is qemu/kvm.
--
Thanks,
//richard
___
Kernelnewbies mailing list
Kernelnewbies@kernelnewbies.org
http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies
interrupts.
Is there one that affects the scheduler?
???
--
Thanks,
//richard
___
Kernelnewbies mailing list
Kernelnewbies@kernelnewbies.org
http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies
the kernel source.
--
Thanks,
//richard
___
Kernelnewbies mailing list
Kernelnewbies@kernelnewbies.org
http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies
member.
If your custom/old/whatever kernel has, use grep to find out...
Thanks,
//richard
___
Kernelnewbies mailing list
Kernelnewbies@kernelnewbies.org
http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies
,
//richard
___
Kernelnewbies mailing list
Kernelnewbies@kernelnewbies.org
http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies
,
//richard
___
Kernelnewbies mailing list
Kernelnewbies@kernelnewbies.org
http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies
makes yaffs2 obsolte anyway...
--
Thanks,
//richard
___
Kernelnewbies mailing list
Kernelnewbies@kernelnewbies.org
http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies
On Sun, Mar 3, 2013 at 5:13 AM, ishare june.tune@gmail.com wrote:
hi:)
Is there mothod to look up the call stack of tcp protocol solution?
You can use ftrace.
--
Thanks,
//richard
___
Kernelnewbies mailing list
Kernelnewbies
and atomicity of the operation.
Not all CPUs support unaligned memory access, such an access may cause a fault
which needs to be fixed by the kernel...
--
Thanks,
//richard
___
Kernelnewbies mailing list
Kernelnewbies@kernelnewbies.org
http
, what can be done to avoid this.
Just use /sys/bus/usb/drivers/*/bind and unbind.
You can unbind the mouse and bind it to your driver...
--
Thanks,
//richard
___
Kernelnewbies mailing list
Kernelnewbies@kernelnewbies.org
http://lists.kernelnewbies.org
On Wed, Jan 9, 2013 at 2:25 PM, Peter Teoh htmldevelo...@gmail.com wrote:
http://www.makelinux.net/kernel_map/
This map is horrible outdated.
I see lock_kernel() for example...
--
Thanks,
//richard
___
Kernelnewbies mailing list
Kernelnewbies
doesn't support lseek
operation).
Thanx in advance.
fflush(stdin) is undefined.
--
Thanks,
//richard
___
Kernelnewbies mailing list
Kernelnewbies@kernelnewbies.org
http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies
...
--
Thanks,
//richard
___
Kernelnewbies mailing list
Kernelnewbies@kernelnewbies.org
http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies
--
Thanks,
//richard
___
Kernelnewbies mailing list
Kernelnewbies@kernelnewbies.org
http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies
function,
but I do not know how to fix it
The fix is to use a supported and not horrible outdated Linux version.
Otherwise you are on your own.
--
Thanks,
//richard
___
Kernelnewbies mailing list
Kernelnewbies@kernelnewbies.org
http
,
//richard
___
Kernelnewbies mailing list
Kernelnewbies@kernelnewbies.org
http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies
a current kernel source and run:
$ make defconfig ARCH=um
$ make linux ARCH=um
it will produce an ELF binary called linux, run it. It's your kernel.
E.g. ./linux rootfstype=hostfs init=/bin/sh
See: http://uml.devloop.org.uk/howto.html
HTH
--
Thanks,
//richard
On Fri, Oct 12, 2012 at 6:48 AM, Lal learner.ker...@gmail.com wrote:
How to get task_struct of a socket owner process? i.e. how to get
task_struct* from sock*
Sockets can be shared.
E.g. after fork().
So, there is no owner...
--
Thanks,
//richard
On Thu, Aug 2, 2012 at 8:35 AM, Rahul Bedarkar rpal...@gmail.com wrote:
Sorry!
and what is meant by
exec 0/dev/console
exec 1/dev/console
See bash basics:
http://tldp.org/LDP/abs/html/x17837.html
--
Thanks,
//richard
___
Kernelnewbies mailing
/init $*
Can someone explain what is meant for ?
It's a hack to get devtmpfs mounted before init starts...
Looks like your distro does not know CONFIG_DEVTMPFS_MOUNT. :-)
--
Thanks,
//richard
___
Kernelnewbies mailing list
Kernelnewbies@kernelnewbies.org
the
interrupt.
What a stupid assignment!
Assignments like this make only sense if you have real hardware...
Anyway, create a timer (e.g struct timer_list) which calls your ISR.
That's how people test their ISRs.
--
Thanks,
//richard
___
Kernelnewbies
manually?
This sounds really odd...
--
Thanks,
//richard
___
Kernelnewbies mailing list
Kernelnewbies@kernelnewbies.org
http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies
swich time ?
kernel thread creation time ?
kernel thread context swich time ?
What is the best way to measure these values?
You can use events like sched_switch.
See: /sys/kernel/debug/tracing/events/sched/
--
Thanks,
//richard
___
Kernelnewbies
.
--
Thanks,
//richard
___
Kernelnewbies mailing list
Kernelnewbies@kernelnewbies.org
http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies
it merged, everything else is a waste of time!
Is there any documentation/steps available to do so?
Find out what has changed between 2.6.10 and your target kernel and fix your
drivers/modifications.
--
Thanks,
//richard
___
Kernelnewbies mailing list
On Sat, Mar 10, 2012 at 11:50 AM, Łukasz Czyż perlowy.d...@gmail.com wrote:
No. I am not sure if it good enough to be merged, I would like to get
some opinions before I ask to add it to mainline.
Submit a patch to netdev/netfilter-devel and you'll get a review.
--
Thanks,
//richard
On Tue, Jan 10, 2012 at 5:05 AM, Nitin Sharma nitin...@gmail.com wrote:
Is there an equivalent of
(freeBSD)
sysctl net.inet.tcp.signature_verify_input=0
in linux?
2.6.35.14-x
How is the MD5 verification of incoming TCP packets done?
See CONFIG_TCP_MD5SIG.
--
Thanks,
//richard
or
something alike, without recompiling?
Hmm, AFAIK there is a tcp sockopt to do this.
--
Thanks,
//richard
___
Kernelnewbies mailing list
Kernelnewbies@kernelnewbies.org
http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies
TP_fast_assign(
46 __entry-ret= ret;
47 ),
48
49 TP_printk(ret=%d, __entry-ret)
50 );
--
Richard Townsend
-Original Message-
From: kernelnewbies-boun...@kernelnewbies.org
[mailto:kernelnewbies-boun...@kernelnewbies.org] On Behalf Of loody
Sent: 28
is in read only page,
how can I set modify the sys_call_table ? Or if there any method that I can
use to hook a system call in module without modify the kernel source?
Please keep in mind that hooking a system call is very bad and error prone.
--
Thanks,
//richard
91 matches
Mail list logo