Image builder module SATA for intel SCH Poulsbo Atom Z510

Hi,

I am trying to make x86 image to run OpenWRT from SATA SSD. On my motherboard the chipset is Intel SCH Poulsbo.

I am able to boot OpenWRT on that pc from USB memory stick. But I want to do it from internal Sata disk.

When I do lspci I get this:

00:00.0 Host bridge: Intel Corporation US15W/US15X SCH [Poulsbo] Host Bridge (rev 07)
00:02.0 VGA compatible controller: Intel Corporation US15W/US15X SCH [Poulsbo] Graphics Controller (rev 07)
00:1c.0 PCI bridge: Intel Corporation US15W/US15X/US15L/UL11L SCH [Poulsbo] PCI Express Port 1 (rev 07)
00:1c.1 PCI bridge: Intel Corporation US15W/US15X/US15L/UL11L SCH [Poulsbo] PCI Express Port 2 (rev 07)
00:1d.0 USB controller: Intel Corporation US15W/US15X/US15L/UL11L SCH [Poulsbo] USB UHCI Controller #1 (rev 07)
00:1d.1 USB controller: Intel Corporation US15W/US15X/US15L/UL11L SCH [Poulsbo] USB UHCI Controller #2 (rev 07)
00:1d.2 USB controller: Intel Corporation US15W/US15X/US15L/UL11L SCH [Poulsbo] USB UHCI Controller #3 (rev 07)
00:1d.7 USB controller: Intel Corporation US15W/US15X/US15L/UL11L SCH [Poulsbo] USB EHCI Controller (rev 07)
00:1e.0 SD Host controller: Intel Corporation US15W/US15X/US15L/UL11L SCH [Poulsbo] SDIO/MMC Controller #1 (rev 07)
00:1e.1 SD Host controller: Intel Corporation US15W/US15X/US15L/UL11L SCH [Poulsbo] SDIO/MMC Controller #2 (rev 07)
00:1e.2 SD Host controller: Intel Corporation US15W/US15X/US15L/UL11L SCH [Poulsbo] SDIO/MMC Controller #3 (rev 07)
00:1f.0 ISA bridge: Intel Corporation US15W/US15X/US15L/UL11L SCH [Poulsbo] LPC Bridge (rev 07)
00:1f.1 IDE interface: Intel Corporation US15W/US15X/US15L/UL11L SCH [Poulsbo] IDE Controller (rev 07)
02:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller (rev 07)
03:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller (rev 07)

It seems taht SATA controller is missing. When I write image to SSD and try to boot from it I get this error: Waiting for root device PARTUUD=d00a2dd4-02

So, I have everything setup for building an image: Running Linux 64 bit on Virtual box with openwrt-imagebuilder-21.02.1-x86-generic.Linux-x86_64.tar.xz downloaded and unpacked. Now I am stuck at the point: what package I have to add to image to be able to boot from SATA SSD.

So, I have found pata_sch driver but it must be compiled:

https://github.com/spotify/linux/blob/master/drivers/ata/pata_sch.c

Could you please help me how to do it?