Hi
As there is none u-boot mailing list anymore I will ask question here.
Maybe someone will know answer.
I have two watchdogs in hardware. One is synopsys designware one (so
standard u-boot global functions hw_watchdog_init and hw_watchdog_reset are
implemented by open source synopsys designware
Hi
You can change log level in linux runtime
echo 7 > /proc/sys/kernel/printk
however my device hangs on fastly after I am able to write anything through
serial console.
Does anybody of You know how to pass it from u-boot? I can stop in u-boot
and pass log level 7 but I don't know what command
Hi
Does anybody know some u-boot mailing list like here for linux, but for
u-boot. Is someone subscribed maybe somewhere? I have question about what
might be a potential rootcause of synchronous abort which I get when
executing "i2c dev 1" in u-boot shell.
OK, problem solved. The issue was that preprocesor directive in c: #elseif
doesn't work. I don't know why but I replaced this with #ifdef ... #endif
and #ifdef ... #endif instead of using #elseif in the middle and
everything works.
On Fri, Aug 21, 2020 at 10:01 AM Tomek The Messenger
Hi
I have problem with passing flag from makefile to .c file.
During building external kernel module my macro isn't seen by compiler. I
used plenty of ways.
First way:
ccflags-y += -DMY_FLAG
$(MAKE) -C $(KERNEL_SRC) M=$(SRC)
Second:
$(MAKE) -C $(KERNEL_SRC) M=$(SRC)
Hi
On the soc on which I work there is issue with unmouting some
partitions/directories during /sbin/reboot, here is some example:
[ OK ] Stopped target Local File System.
Unmouting Temporary Directory (/tmp)...
Unmouting /run/user/0...
...
[ FAILED ] Failed unmouting Temporary Directory
Hi
Was anyone dealing with TPM?
I have error during TPM initialization:
tpm tpm0: A TPM error (256) occurred continue seltest
And I have similar error when executing /sbin/reboot:
tpm tpm0: A TMP error (256) occurred stopping the TPM
What I might say is that in filesystem there are files:
re all api
reads/writes or only common between sysfs kernel modules.
...
/sys/functionalityN -> separate driver for intel, TI, Xilinx
On Wed, Jun 17, 2020 at 3:34 PM Ahmad Fatoum
wrote:
> Hello,
>
> On 6/17/20 2:48 PM, Tomek The Messenger wrote:
> > This is the case about which
This is the case about which Martin write shortly. Then let's assume on
another soc reset reason is not stored in chip's address space memory
mapped to address 0xfff but it is accessed via some spi operation. On
another soc reset reason is still memory mapped but to different address
0xfff...
OK, I will ask if it is possible to share the code.
Thanks
BR
Tomek
On Wed, Jun 17, 2020 at 11:41 AM Greg KH wrote:
> On Wed, Jun 17, 2020 at 11:17:28AM +0200, Tomek The Messenger wrote:
> > OK, so I had to wrongly described something because in my company this is
> > popular
t function
some_readAPI_to_get_reboot_reason() I think should be placed in 6th kernel
module, so in kernel module with read/write specific operations to given
soc.
On Wed, Jun 17, 2020 at 11:17 AM Tomek The Messenger <
tomekthemessen...@gmail.com> wrote:
> OK, so I had to wrongly describe
my
doubts are where to put API for read/write operations as I mentioned above.
On Wed, Jun 17, 2020 at 10:55 AM Greg KH wrote:
> On Wed, Jun 17, 2020 at 09:58:03AM +0200, Tomek The Messenger wrote:
> > Hi
> > Thanks for reply.
> > We make some proxy layer in linux /sys. So fo
użytkownik Greg KH napisał:
> On Tue, Jun 16, 2020 at 03:18:02PM +0200, Tomek The Messenger wrote:
> > Hi
> > I am in the middle of implementation of various external kernel modules.
> > All kernel modules touch some board specific registers. For example let's
> > say w
Hi
I am in the middle of implementation of various external kernel modules.
All kernel modules touch some board specific registers. For example let's
say we have 3 groups of register areas:
#define REG1_ADDR (0xFDEA7000)
#define REG1 _SIZE (0x3C0)
#define REG2_ADDR (0xFDEC4000)
#define REG2 _SIZE
Hi
If I have something like this in makefile:
obj-m := reset-core.o
reset-core-y := reset-core-main.o reset-core-utils.o
then module is built OK.
If I have something like that:
obj-m := reset-core.o
reset-core-y := reset-core.o reset-core-utils.o
then it is wrongly built.
So I will replace all
.
On Thu, Apr 30, 2020 at 1:20 PM Greg KH wrote:
> On Thu, Apr 30, 2020 at 01:11:06PM +0200, Tomek The Messenger wrote:
> > Hi
> > If I don't have disabled irqs I can use API i2c_smbus_write_byte in order
> > to perform i2c transaction.
> > But how to make i2c transac
Hi
If I don't have disabled irqs I can use API i2c_smbus_write_byte in order
to perform i2c transaction.
But how to make i2c transaction if I have disabled irq? Is any built-in
function which lets such operation, where there is some polling implemented?
The background is that I do i2c transaction
Hi
If I have to parse some properties from dts and none file operations are
set for user space what is better to use platform driver or just
module_init?
If I use module_init(my_init) then in my_init I need to use:
'of_find_compatible_node' in order to find node in device tree and parse
Hi
The background:
Interrupts are disabled just before stopping other cores during handling
restart:
See example from:
/arch/arm/kernel/reboot.c:
/*
* Restart requires that the secondary CPUs stop performing any activity
* while the primary CPU resets the system.
*/
void machine_restart(char
Hi
I am trying to design some functionality and I wonder if something like
that is supported in dts and linux:
{
default_device: default_device@75 {
compatible = "some-name-never-mind";
reg = <0x75>;
};
my_device: my_device@0 {
compatible = "my-device-which-do-only-some-minor-part";
reg
e enough
that user cannot set more than 32 bits.
On Fri, Apr 3, 2020 at 2:39 PM Tomek The Messenger <
tomekthemessen...@gmail.com> wrote:
> ok, for me strange was this ranges[0] declaration. I found other way to
> get to know mmio regmap size, just to remember pointer to struct resourc
Hi
What happens with devm_kzalloc and devm_kcalloc data when probe function
returns not 0?
Is this memory automatically deallocated?
Example below:
static struct my_data* my_static_pointer;
static int somedriver_do_probe(struct platform_device *pdev)
{
int ret;
struct device *dev = >dev;
200, Tomek The Messenger wrote:
> > Hi
> > Let's see how it looks:
> > https://github.com/u-boot/u-boot/blob/master/include/regmap.h
> >
> > I first time ever see such thing like this:
> > struct regmap_range {
> > ulong start;
> > ulong size;
>
Hi
Let's see how it looks:
https://github.com/u-boot/u-boot/blob/master/include/regmap.h
I first time ever see such thing like this:
struct regmap_range {
ulong start;
ulong size;
};
struct regmap {
enum regmap_endianness_t endianness;
int range_count;
struct regmap_range ranges[0];
};
How I can
maybe maintenainer doesn't live any more. Try send to other one.
niedz., 29 mar 2020, 17:41 użytkownik Athul Joy
napisał:
> I am Athul Joy. On March 27 I have submitted my first ever patch with the
> title "[PATCH] Staging: android: fix struct file_operations warning". I
> have made the patch
Hi
There is checkpatch.pl script where You can check if You wrote code in your
kernel module according to linux kernel style.
However can I ignore warning message?
WARNING: quoted string split across lines
#974: FILE: fpgax67-core.c:974:
+ dev_err(>dev, "registration not done, driver
Hi
There is such struct as 'notifier_block'. It has member 'notifier_call'
where You assign pointer to your function (handler) and priority. Then You
register such notifier block to restart handler list.
Then when You type in linux reboot Your function might be invoked (depends
on priority you set
Hi
When I insert external kernel module which is compiled out of tree I got
error:
root:/run# insmod ./my_module.ko
[ 137.443823] my_module: Unknown symbol reboot_mode (err 0)
I investigated that I have attached in my my_module.c file:
#include
and in this file we have:
extern enum reboot_mode
I suppose the response is yes but I would like to make sure:
Is below acceptable:
some_module_name.c:
#define DRIVER_NAME "some-driver-name"
...
static struct platform_driver some_driver = {
.driver = {
.name = DRIVER_NAME,
.of_match_table =
What is the use case of using:
MODULE_SOFTDEP("pre: another-external-kernel-module...");
because I completely don't understand.
If I have phandle to another-external-kernel-module in dts which is
mandatory in my kernel driver then should I put this line in my kernel
driver code?
If I use function
Hi
I am writing some framework for my kernel drivers. I delegated to framework
the code which is common amongs all kernel drivers. So my framework module
core.c has none probe, remove functions. It has also none module_init,
module_exit functions at those are not needed.
1.) When I do modprobe of
31 matches
Mail list logo