I'm liking Gerry's idea - This is essentially placing the sill plate for the wall IN the floor. It doesn't have to be wood (and if it is wood it must be pressure treated. or be
black locust), but any material that is solid (concrete blocks would also do). I'd advocate for laying out these boards/blocks and setting a threaded bolt in them - you'll have a floor with a bunch of threaded rod sticking up. Then you can drill holes in a bottom plate and place on the rod.
The plate can just be held down onto the earthen floor with a washer and nut. Or, you can get fancy and
thread a nut and washer onto the rod, add the bottom plate, and then another washer and nut. Both approaches will securely anchor the wall... the second method allows you to float the bottom plate above the floor and thus use trim pieces to cover the gap. Floating the bottom plate allows your floor to move more.