Non inertial frame motion can be treated as inertial frame
motion by applying a pseudo force over the frame . We are applying
a pseudo force on the block to treat it as inertial frame motion .
Now drawing FBD we get the normal forces in both conditions . For
maximum accelration the block should not move ie. The component of
force must be balanced by friction.

To transport a series of bundles of shingles A to a roof, a contractor uses a...
To
transport a series of packages of roof tiles A to the roof, a
contractor uses a motorized lift truck consisting of a horizontal
BC platform that is mounted on the rails attached to the sides of a
ladder. The forklift begins its movement from rest, at first it
moves with a constant acceleration a1 as shown in the figure. Then
it decelerates at a constant rate a2 and stops at D, near the top
of the ladder. If it...