ALIBERA / linux_raspberrypi_book

Linux Driver Development with Raspberry Pi - Practical Labs
36 stars 15 forks source link

MAX11300 on Pi Zero W2 #1

Open DatanoiseTV opened 2 years ago

DatanoiseTV commented 2 years ago

It's nice to see an example for the MAX11300. I'm struggling a bit right now. The kernel module compiles, but I see no iio devices. I guess the dtbo is missing and dtbc doesn't want to compile.

I'm trying on a Pi Zero 2 W with 5.10.63-v7+

ALIBERA commented 2 years ago

Hi,

I have tested the module for kernel version 5.4 and Raspberry Pi 3 and Raspberry Pi 4. Have you added the new DT node to &spi0 as described since pag.464 of the book?

Do you have any error when you compile the new device tree?

Build the modified Device Tree and load it to the target processor: ~/linux_rpi3/linux$ make ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf- dtbs ~/linux_rpi3/linux$ scp arch/arm/boot/dts/bcm2710-rpi-3-b.dtb @.**@.:/boot/>

Alberto Liberal de los Rios Senior Field Application Engineer T: +34 917 61 11 71|M: +34 699 98 43 26 E: @. Arrow Electronics | arrow.com De: Datanoise @.> Enviado el: domingo, 14 de noviembre de 2021 14:23 Para: ALIBERA/linux_raspberrypi_book @.> CC: Subscribed @.> Asunto: [External] [ALIBERA/linux_raspberrypi_book] MAX11300 on Pi Zero W2 (Issue #1)

CAUTION: This email originated from outside of the organization. This message might not be safe, use caution in opening it. If in doubt, do not open the attachment nor links in the message.

It's nice to see an example for the MAX11300. I'm struggling a bit right now. The kernel module compiles, but I see no iio devices. I guess the dtbo is missing and dtbc doesn't want to compile.

I'm trying on a Pi Zero 2 W with 5.10.63-v7+

- You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHubhttps://nam04.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2FALIBERA%2Flinux_raspberrypi_book%2Fissues%2F1&data=04%7C01%7Caliberal%40arroweurope.com%7Cd492e25f2104461438a108d9a771e72a%7C0beb0c359cbb4feb99e5589e415c7944%7C1%7C0%7C637724929925630101%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&sdata=QsgpZvf1IGspp%2FABtzZwvi9llcHBm3oh9VGISvaxo5I%3D&reserved=0, or unsubscribehttps://nam04.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fnotifications%2Funsubscribe-auth%2FAFPKA3QSZZGKZDIAHITBH4LUL6Z33ANCNFSM5H73K6MA&data=04%7C01%7Caliberal%40arroweurope.com%7Cd492e25f2104461438a108d9a771e72a%7C0beb0c359cbb4feb99e5589e415c7944%7C1%7C0%7C637724929925640060%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&sdata=lWyu%2Bm01IKKECZhQNtPOhrFWlq6%2FyhmjZRC0zA3EXf8%3D&reserved=0. Triage notifications on the go with GitHub Mobile for iOShttps://nam04.safelinks.protection.outlook.com/?url=https%3A%2F%2Fapps.apple.com%2Fapp%2Fapple-store%2Fid1477376905%3Fct%3Dnotification-email%26mt%3D8%26pt%3D524675&data=04%7C01%7Caliberal%40arroweurope.com%7Cd492e25f2104461438a108d9a771e72a%7C0beb0c359cbb4feb99e5589e415c7944%7C1%7C0%7C637724929925640060%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&sdata=4OZVN9TJMKnsgLvoWuLdy9BsfoA4UspN5%2FLTvdl%2Bk5Q%3D&reserved=0 or Androidhttps://nam04.safelinks.protection.outlook.com/?url=https%3A%2F%2Fplay.google.com%2Fstore%2Fapps%2Fdetails%3Fid%3Dcom.github.android%26referrer%3Dutm_campaign%253Dnotification-email%2526utm_medium%253Demail%2526utm_source%253Dgithub&data=04%7C01%7Caliberal%40arroweurope.com%7Cd492e25f2104461438a108d9a771e72a%7C0beb0c359cbb4feb99e5589e415c7944%7C1%7C0%7C637724929925650016%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&sdata=zBFE0Ea62Aml1%2BR6%2FAAvhEgCeL99teoyqdh8ijrAwlo%3D&reserved=0.